Skip to content

Commit

Permalink
Fix Gradle configuration issues
Browse files Browse the repository at this point in the history
  • Loading branch information
beikov authored and gavinking committed Mar 1, 2024
1 parent 85abce2 commit 1fe9c66
Showing 1 changed file with 9 additions and 43 deletions.
52 changes: 9 additions & 43 deletions tooling/metamodel-generator/hibernate-jpamodelgen.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,9 @@ ext {
xsdDir = file( "${projectDir}/src/main/xsd" )
}

sourceSets {
quarkusOrmPanache {
compileClasspath += sourceSets.main.output
compileClasspath += sourceSets.test.output
runtimeClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.test.output
}
quarkusHrPanache {
compileClasspath += sourceSets.main.output
compileClasspath += sourceSets.test.output
runtimeClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.test.output
}
}

configurations {
quarkusOrmPanacheImplementation.extendsFrom testImplementation
quarkusOrmPanacheRuntimeOnly.extendsFrom runtimeOnly
quarkusHrPanacheImplementation.extendsFrom testImplementation
quarkusHrPanacheRuntimeOnly.extendsFrom runtimeOnly
quarkusOrmPanache
quarkusHrPanache
}

dependencies {
Expand All @@ -53,46 +36,29 @@ dependencies {
xjc jakartaLibs.xjc
xjc jakartaLibs.jaxb
xjc rootProject.fileTree(dir: 'patched-libs/jaxb2-basics', include: '*.jar')

quarkusOrmPanacheImplementation "io.quarkus:quarkus-hibernate-orm-panache:3.6.2"
quarkusOrmPanacheImplementation project( ":hibernate-testing" )
quarkusOrmPanacheImplementation 'org.checkerframework:checker-qual:3.4.0'

quarkusHrPanacheImplementation "io.quarkus:quarkus-hibernate-hr-panache:3.6.2"
quarkusHrPanacheImplementation project( ":hibernate-testing" )
quarkusHrPanacheImplementation 'org.checkerframework:checker-qual:3.4.0'

quarkusOrmPanache "io.quarkus:quarkus-hibernate-orm-panache:3.6.2"
quarkusHrPanache "io.quarkus:quarkus-hibernate-reactive-panache:3.6.2"
}

def quarkusOrmPanacheTestTask = tasks.register( 'quarkusOrmPanacheTest', Test ) {
description = 'Runs the Quarkus ORM Panache tests.'
group = 'verification'

testClassesDirs = sourceSets.quarkusOrmPanache.output.classesDirs
classpath = sourceSets.quarkusOrmPanache.runtimeClasspath
testClassesDirs = sourceSets.test.output.classesDirs
classpath = sourceSets.test.runtimeClasspath + configurations.quarkusOrmPanache
shouldRunAfter test
dependsOn test

useJUnitPlatform()

testLogging {
events "passed"
}
}

def quarkusHrPanacheTestTask = tasks.register( 'quarkusHrPanacheTest', Test ) {
description = 'Runs the Quarkus HR Panache tests.'
group = 'verification'

testClassesDirs = sourceSets.quarkusHrPanache.output.classesDirs
classpath = sourceSets.quarkusHrPanache.runtimeClasspath
testClassesDirs = sourceSets.test.output.classesDirs
classpath = sourceSets.test.runtimeClasspath + configurations.quarkusHrPanache
shouldRunAfter test
dependsOn test

useJUnitPlatform()

testLogging {
events "passed"
}
}

check.dependsOn quarkusHrPanacheTestTask
Expand Down

0 comments on commit 1fe9c66

Please sign in to comment.