Skip to content

Commit

Permalink
Merge pull request #16034 from ldclakmal/refactor-jballerina
Browse files Browse the repository at this point in the history
Refactor Gradle configuration files
  • Loading branch information
ldclakmal authored Jun 28, 2019
2 parents f2e8b9f + 26c03d7 commit 3c68b07
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 195 deletions.
24 changes: 12 additions & 12 deletions stdlib/auth/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@

apply from: "$rootDir/gradle/balNativeLibProject.gradle"

description = 'Ballerina - Auth'

configurations.testCompileClasspath {
resolutionStrategy {
preferProjectModules()
}
}

dependencies {
baloImplementation project(path: ":ballerina-internal", configuration: 'baloImplementation')
baloImplementation project(path: ":ballerina-builtin", configuration: 'baloImplementation')
Expand Down Expand Up @@ -82,16 +74,24 @@ dependencies {
testCompile project(':ballerina-crypto')
}

createBalo {
jvmTarget = 'true'
}

configurations.all {
resolutionStrategy.preferProjectModules()
}

configurations.testCompileClasspath {
resolutionStrategy {
preferProjectModules()
}
}

configurations {
testCompile.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
testCompile.exclude group: 'org.slf4j', module: 'slf4j-simple'
testCompile.exclude group: 'org.ops4j.pax.logging', module: 'pax-logging-api'
}

createBalo {
jvmTarget = 'true'
}

description = 'Ballerina - Auth'

This file was deleted.

10 changes: 7 additions & 3 deletions stdlib/auth/src/test/resources/testng.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ under the License.
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >

<suite name="ballerina-test-suite">
<listeners>
<listener class-name="org.ballerinalang.stdlib.auth.util.JBallerinaTestInitializer"/>
</listeners>

<test name="ballerina-lang-test-suite" preserve-order="true" parallel="false">
<parameter name="enableJBallerinaTests" value="true"/>
<groups>
<run>
<exclude name="broken"/>
<exclude name="brokenOnJBallerina"/>
</run>
</groups>

<packages>
<package name="org.ballerinalang.stdlib.auth.*"/>
</packages>
Expand Down
20 changes: 16 additions & 4 deletions stdlib/crypto/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@

apply from: "$rootDir/gradle/balNativeLibProject.gradle"

configurations {
localDependency
}

dependencies {
baloImplementation project(path: ':ballerina-time', configuration: 'baloImplementation')
baloImplementation project(path: ':ballerina-builtin', configuration: 'baloImplementation')
Expand All @@ -40,6 +36,22 @@ dependencies {
testCompile project(':ballerina-jvm')
}

configurations.all {
resolutionStrategy.preferProjectModules()
}

configurations.testCompileClasspath {
resolutionStrategy {
preferProjectModules()
}
}

configurations {
testCompile.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
testCompile.exclude group: 'org.slf4j', module: 'slf4j-simple'
testCompile.exclude group: 'org.ops4j.pax.logging', module: 'pax-logging-api'
}

createBalo {
jvmTarget = 'true'
}
Expand Down

This file was deleted.

11 changes: 8 additions & 3 deletions stdlib/crypto/src/test/resources/testng.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@ under the License.
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >

<suite name="ballerina-test-suite">
<listeners>
<listener class-name="org.ballerinalang.stdlib.crypto.util.JBallerinaTestInitializer"/>
</listeners>

<test name="ballerina-crypto-test-suite" preserve-order="true" parallel="false">
<parameter name="enableJBallerinaTests" value="true"/>
<groups>
<run>
<exclude name="broken"/>
<exclude name="brokenOnJBallerina"/>
</run>
</groups>

<packages>
<package name="org.ballerinalang.stdlib.crypto.*"/>
</packages>
Expand Down
24 changes: 20 additions & 4 deletions stdlib/ldap/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@

apply from: "$rootDir/gradle/balNativeLibProject.gradle"

configurations.all {
resolutionStrategy.preferProjectModules()
}

dependencies {
baloCreat project(':lib-creator')
implementation project(':ballerina-core')
Expand Down Expand Up @@ -49,4 +45,24 @@ dependencies {
baloImplementation project(path: ':ballerina-system', configuration: 'baloImplementation')
}

configurations.all {
resolutionStrategy.preferProjectModules()
}

configurations.testCompileClasspath {
resolutionStrategy {
preferProjectModules()
}
}

configurations {
testCompile.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
testCompile.exclude group: 'org.slf4j', module: 'slf4j-simple'
testCompile.exclude group: 'org.ops4j.pax.logging', module: 'pax-logging-api'
}

createBalo {
jvmTarget = 'true'
}

description = 'Ballerina - LDAP'
28 changes: 17 additions & 11 deletions stdlib/oauth2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@

apply from: "$rootDir/gradle/balNativeLibProject.gradle"

configurations.all {
resolutionStrategy.preferProjectModules()
}

configurations.testCompileClasspath {
resolutionStrategy {
preferProjectModules()
}
}

dependencies {
baloCreat project(':lib-creator')

Expand Down Expand Up @@ -65,8 +55,24 @@ dependencies {
baloImplementation project(path: ':ballerina-config-api', configuration: 'baloImplementation')
}

description = 'Ballerina - OAuth2'
configurations.all {
resolutionStrategy.preferProjectModules()
}

configurations.testCompileClasspath {
resolutionStrategy {
preferProjectModules()
}
}

configurations {
testCompile.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
testCompile.exclude group: 'org.slf4j', module: 'slf4j-simple'
testCompile.exclude group: 'org.ops4j.pax.logging', module: 'pax-logging-api'
}

createBalo {
jvmTarget = 'true'
}

description = 'Ballerina - OAuth2'

0 comments on commit 3c68b07

Please sign in to comment.