Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAure committed Nov 16, 2023
1 parent 6dcb7e7 commit 99a002f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ ext.lastRelease = '0.9.1'
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'

// java-library will force inter-project dependencies to use class files instead of jars
// This system property disables that and goes back to using jars
System.setProperty("org.gradle.java.compile-classpath-packaging", "true");

ext.publishScript = rootProject.rootDir.absolutePath + '/publish.gradle'

Expand Down
5 changes: 4 additions & 1 deletion sample-apps/everything-jakarta-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies {
implementation 'org.mongodb:mongo-java-driver:3.11.2'

testImplementation project(':microshed-testing-testcontainers')
testImplementation project(':microshed-testing-core-jakarta') //FIXME gradle does not like this working on it.
testImplementation project(':microshed-testing-core-jakarta')

testImplementation 'org.slf4j:slf4j-log4j12:1.7.36'
testImplementation 'org.testcontainers:mockserver:1.19.1'
Expand All @@ -21,6 +21,9 @@ dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1'
}

//Ensure the transformed library is available before testing
compileTestJava.dependsOn ':microshed-testing-core-jakarta:jar'

war.archiveFileName.set 'myservice.war'
test.dependsOn 'war'

Expand Down

0 comments on commit 99a002f

Please sign in to comment.