Skip to content

Commit

Permalink
Adds joda-convert and joda-time library to build.
Browse files Browse the repository at this point in the history
  • Loading branch information
advayDev1 committed Sep 26, 2015
1 parent 269f831 commit a0bce98
Show file tree
Hide file tree
Showing 9 changed files with 110 additions and 14 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ os: osx
# on Traivs.
env:
- TEST_DIR=gson
- TEST_DIR=joda-convert
- TEST_DIR=joda-time

branches:
only:
Expand Down
28 changes: 14 additions & 14 deletions libraryBuilds/gson/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@
* limitations under the License.
*/

buildscript {
repositories {
jcenter()
}
dependencies {
// This is the build output of the plugin itself.
classpath fileTree(dir: '../../j2objc-gradle/build/libs', include: ['*.jar'])
}
}
buildscript {
repositories {
jcenter()
}
dependencies {
// This is the build output of the plugin itself.
classpath fileTree(dir: '../../j2objc-gradle/build/libs', include: ['*.jar'])
}
}

apply plugin: 'java'
apply plugin: 'com.github.j2objccontrib.j2objcgradle'
apply plugin: 'java'
apply plugin: 'com.github.j2objccontrib.j2objcgradle'

repositories {
mavenCentral()
}
repositories {
mavenCentral()
}

dependencies {
j2objcTranslation 'com.google.code.gson:gson:2.3.1:sources'
Expand Down
44 changes: 44 additions & 0 deletions libraryBuilds/joda-convert/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* Copyright (c) 2015 the authors of j2objc-common-libs-e2e-test
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

buildscript {
repositories {
jcenter()
}
dependencies {
// This is the build output of the plugin itself.
classpath fileTree(dir: '../../j2objc-gradle/build/libs', include: ['*.jar'])
}
}

apply plugin: 'java'
apply plugin: 'com.github.j2objccontrib.j2objcgradle'

repositories {
mavenCentral()
}

dependencies {
j2objcTranslation 'org.joda:joda-convert:1.7:sources'
}

j2objcConfig {
filenameCollisionCheck false

// Almost always there are no tests provided in an external source jar.
testMinExpectedTests 0
finalConfigure()
}
1 change: 1 addition & 0 deletions libraryBuilds/joda-convert/gradlew
1 change: 1 addition & 0 deletions libraryBuilds/joda-convert/local.properties
44 changes: 44 additions & 0 deletions libraryBuilds/joda-time/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* Copyright (c) 2015 the authors of j2objc-common-libs-e2e-test
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

buildscript {
repositories {
jcenter()
}
dependencies {
// This is the build output of the plugin itself.
classpath fileTree(dir: '../../j2objc-gradle/build/libs', include: ['*.jar'])
}
}

apply plugin: 'java'
apply plugin: 'com.github.j2objccontrib.j2objcgradle'

repositories {
mavenCentral()
}

dependencies {
j2objcTranslation 'joda-time:joda-time:2.8.2:sources'
}

j2objcConfig {
filenameCollisionCheck false

// Almost always there are no tests provided in an external source jar.
testMinExpectedTests 0
finalConfigure()
}
1 change: 1 addition & 0 deletions libraryBuilds/joda-time/gradlew
1 change: 1 addition & 0 deletions libraryBuilds/joda-time/local.properties
2 changes: 2 additions & 0 deletions libraryBuilds/run-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@
set -ev

./run-test.sh gson
./run-test.sh joda-convert
./run-test.sh joda-time

0 comments on commit a0bce98

Please sign in to comment.