Skip to content

Commit

Permalink
Fix compileOnly dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Aure <[email protected]>
  • Loading branch information
KyleAure committed Nov 8, 2023
1 parent 0647477 commit 2f98cd8
Show file tree
Hide file tree
Showing 20 changed files with 30 additions and 5 deletions.
5 changes: 1 addition & 4 deletions core/jakarta/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,13 @@ jar.dependsOn transform

//Overwrites the empty jar with the transformed jar in the build/libs directory
task overwrite(type: Copy) {
dependsOn jar
from(transformed_jar)
into('build/libs')
}

assemble.dependsOn overwrite
jar.finalizedBy overwrite

apply from: publishScript

publishToMavenLocal.dependsOn overwrite

publishToMavenLocal.dependsOn ':microshed-testing-core:publishToMavenLocal'

1 change: 1 addition & 0 deletions modules/liberty/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ description = "Extensions for using MicroShed Testing with Liberty servers"

dependencies {
compile project(':microshed-testing-testcontainers')
compileOnly project(':microshed-testing-core')
}

apply from: publishScript
Expand Down
1 change: 1 addition & 0 deletions modules/payara-micro/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ description = "Extensions for using MicroShed Testing with Payara Micro servers"

dependencies {
compile project(':microshed-testing-testcontainers')
compileOnly project(':microshed-testing-core')
}

apply from: publishScript
Expand Down
1 change: 1 addition & 0 deletions modules/payara-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ description = "Extensions for using MicroShed Testing with Payara servers"

dependencies {
compile project(':microshed-testing-testcontainers')
compileOnly project(':microshed-testing-core')
}

apply from: publishScript
Expand Down
1 change: 1 addition & 0 deletions modules/quarkus/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ description = "Extensions for using MicroShed Testing with Quarkus"

dependencies {
compile project(':microshed-testing-testcontainers')
compileOnly project(':microshed-testing-core')
compileOnly 'io.quarkus:quarkus-junit5:1.8.3.Final'
}

Expand Down
2 changes: 1 addition & 1 deletion modules/testcontainers/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ sourceSets {
}

dependencies {
compile project(':microshed-testing-core')
compile 'org.testcontainers:junit-jupiter:1.19.1'
compileOnly project(':microshed-testing-core')
testCompile 'org.eclipse.microprofile.rest.client:microprofile-rest-client-api:1.4.1'
testCompile 'org.slf4j:slf4j-log4j12:1.7.36'
testCompile 'org.testcontainers:mockserver:1.19.1'
Expand Down
1 change: 1 addition & 0 deletions modules/wildfly/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ description = "Extensions for using MicroShed Testing with WildFly servers"

dependencies {
compile project(':microshed-testing-testcontainers')
compileOnly project(':microshed-testing-core')
}

apply from: publishScript
Expand Down
1 change: 1 addition & 0 deletions sample-apps/everything-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies {
providedCompile 'org.eclipse.microprofile:microprofile:2.1'
compile group: 'org.mongodb', name: 'mongo-java-driver', version: '3.11.2'
testCompile project(':microshed-testing-testcontainers')
testCompile project(':microshed-testing-core')
testCompile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.36'
testCompile 'org.testcontainers:mockserver:1.19.1'
testCompile 'org.mock-server:mockserver-client-java:5.5.4'
Expand Down
1 change: 1 addition & 0 deletions sample-apps/everything-jakarta-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies {
compile 'org.mongodb:mongo-java-driver:3.11.2'

testCompile project(':microshed-testing-testcontainers')
testCompile project(':microshed-testing-core-jakarta')

testCompile 'org.slf4j:slf4j-log4j12:1.7.36'
testCompile 'org.testcontainers:mockserver:1.19.1'
Expand Down
1 change: 1 addition & 0 deletions sample-apps/jaxrs-basicauth/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies {
providedCompile 'javax:javaee-api:8.0.1'
providedCompile 'org.eclipse.microprofile:microprofile:2.1'
testCompile project(':microshed-testing-testcontainers')
testCompile project(':microshed-testing-core')
testCompile group: 'org.assertj', name: 'assertj-core', version: '3.15.0'
testCompile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.36'
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1'
Expand Down
1 change: 1 addition & 0 deletions sample-apps/jaxrs-json/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies {
providedCompile 'javax:javaee-api:8.0.1'
providedCompile 'org.eclipse.microprofile:microprofile:2.1'
testCompile project(':microshed-testing-testcontainers')
testCompile project(':microshed-testing-core')
testCompile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.36'
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1'
}
Expand Down
1 change: 1 addition & 0 deletions sample-apps/jaxrs-mpjwt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies {
providedCompile 'javax:javaee-api:8.0.1'
providedCompile 'org.eclipse.microprofile:microprofile:2.1'
testCompile project(':microshed-testing-testcontainers')
testCompile project(':microshed-testing-core')
testCompile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.36'
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1'
}
Expand Down
1 change: 1 addition & 0 deletions sample-apps/jdbc-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies {
testCompile 'org.testcontainers:postgresql:1.15.0'
testCompile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.36'
testCompile project(':microshed-testing-testcontainers')
testCompile project(':microshed-testing-core')
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1'
postgres 'org.postgresql:postgresql:42.2.8'
}
Expand Down
1 change: 1 addition & 0 deletions sample-apps/kafka-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies {
providedCompile 'org.eclipse.microprofile.reactive.messaging:microprofile-reactive-messaging-api:1.0'
compile 'org.apache.kafka:kafka-clients:2.4.0'
testCompile project(':microshed-testing-testcontainers')
testCompile project(':microshed-testing-core')
testCompile 'org.awaitility:awaitility:4.0.2'
testCompile 'org.testcontainers:kafka:1.15.0'
testCompile 'org.slf4j:slf4j-log4j12:1.7.36'
Expand Down
1 change: 1 addition & 0 deletions sample-apps/liberty-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies {
providedCompile 'javax:javaee-api:8.0.1'
providedCompile 'org.eclipse.microprofile:microprofile:3.0'
testCompile project(':microshed-testing-liberty')
testCompile project(':microshed-testing-core')
testCompile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.36'
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1'
}
Expand Down
1 change: 1 addition & 0 deletions sample-apps/maven-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ task deleteTarget(type: Delete) {
}

compileJava.dependsOn ':microshed-testing-testcontainers:publishToMavenLocal'
compileJava.dependsOn ':microshed-testing-core:publishToMavenLocal'
assemble.dependsOn runMvnCompile
test.dependsOn runMvnVerify
clean.dependsOn deleteTarget
Expand Down
6 changes: 6 additions & 0 deletions sample-apps/maven-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
<version>0.9.2-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.microshed</groupId>
<artifactId>microshed-testing-core</artifactId>
<version>0.9.2-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
Expand Down
1 change: 1 addition & 0 deletions sample-apps/payara-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies {
providedCompile 'javax:javaee-api:8.0.1'
providedCompile 'org.eclipse.microprofile:microprofile:2.1'
testCompile project(':microshed-testing-payara-server')
testCompile project(':microshed-testing-core')
testCompile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.36'
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1'
}
Expand Down
6 changes: 6 additions & 0 deletions sample-apps/quarkus-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@
<version>0.9.2-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.microshed</groupId>
<artifactId>microshed-testing-core</artifactId>
<version>0.9.2-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>postgresql</artifactId>
Expand Down
1 change: 1 addition & 0 deletions sample-apps/wildfly-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies {
providedCompile 'javax:javaee-api:8.0.1'
providedCompile 'org.eclipse.microprofile:microprofile:2.1'
testCompile project(':microshed-testing-wildfly')
testCompile project(':microshed-testing-core')
testCompile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.36'
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1'
}
Expand Down

0 comments on commit 2f98cd8

Please sign in to comment.