Skip to content

Commit

Permalink
Fix build to publish hibernate-osgi before executing junit tests with…
Browse files Browse the repository at this point in the history
… junit5.
  • Loading branch information
Naros committed Dec 5, 2018
1 parent 9dc2c5c commit 0522620
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions hibernate-osgi/hibernate-osgi.gradle
Expand Up @@ -216,16 +216,16 @@ task generatePaxExamEnvironmentFile {
}
}

tasks.test.dependsOn tasks.generateFeatures
tasks.test.dependsOn tasks.jar
tasks.test.dependsOn tasks.generateDependsFile
tasks.test.dependsOn tasks.generatePaxExamEnvironmentFile
tasks.junitPlatformTest.dependsOn tasks.generateFeatures
tasks.junitPlatformTest.dependsOn tasks.jar
tasks.junitPlatformTest.dependsOn tasks.generateDependsFile
tasks.junitPlatformTest.dependsOn tasks.generatePaxExamEnvironmentFile

// we also need to make sure that hibernate-core, hibernate-entitymanager and hibernate-osgi
// are published to maven-local before running tests
tasks.test.dependsOn rootProject.childProjects.'hibernate-core'.tasks.publishToMavenLocal
tasks.test.dependsOn rootProject.childProjects.'hibernate-envers'.tasks.publishToMavenLocal
tasks.test.dependsOn tasks.publishToMavenLocal
tasks.junitPlatformTest.dependsOn rootProject.childProjects.'hibernate-core'.tasks.publishToMavenLocal
tasks.junitPlatformTest.dependsOn rootProject.childProjects.'hibernate-envers'.tasks.publishToMavenLocal
tasks.junitPlatformTest.dependsOn tasks.publishToMavenLocal

publishing {
publications {
Expand Down

0 comments on commit 0522620

Please sign in to comment.