File tree Expand file tree Collapse file tree 5 files changed +25
-16
lines changed
integration-tests/bytecode-enhancements-it Expand file tree Collapse file tree 5 files changed +25
-16
lines changed Original file line number Diff line number Diff line change 55
55
if ( ! project. hasProperty(' hibernateOrmVersion' ) ) {
56
56
hibernateOrmVersion = ' 6.2.0.CR4'
57
57
}
58
+ if ( ! project. hasProperty( ' hibernateOrmGradlePluginVersion' ) ) {
59
+ // Same as ORM as default
60
+ hibernateOrmGradlePluginVersion = project. hibernateOrmVersion
61
+ }
58
62
// For ORM, we need a parsed version (to get the family, ...)
59
63
60
64
// For ORM, we need a parsed version (to get the family for the documentation during release).
85
89
testcontainersVersion = ' 1.17.5'
86
90
87
91
logger. lifecycle " Hibernate ORM Version: " + project. hibernateOrmVersion
92
+ logger. lifecycle " Hibernate ORM Gradle plugin Version: " + project. hibernateOrmGradlePluginVersion
88
93
logger. lifecycle " Vert.x Version: " + project. vertxVersion
89
94
logger. lifecycle " Hibernate Reactive: " + project. version
90
95
}
Original file line number Diff line number Diff line change @@ -27,24 +27,23 @@ dependencies {
27
27
buildscript {
28
28
repositories {
29
29
// Example: ./gradlew build -PenableMavenLocalRepo
30
- if ( project. hasProperty(' enableMavenLocalRepo' ) ) {
30
+ if ( project. hasProperty( ' enableMavenLocalRepo' ) ) {
31
31
// Useful for local development, it should be disabled otherwise
32
32
mavenLocal()
33
33
}
34
34
maven {
35
- url = uri( " https://plugins.gradle.org/m2/" )
35
+ url ' https://plugins.gradle.org/m2/'
36
36
}
37
-
38
37
mavenCentral()
39
38
40
39
// Example: ./gradlew build -PenableJBossSnapshotsRep
41
- if ( project. hasProperty(' enableJBossSnapshotsRep' ) ) {
40
+ if ( project. hasProperty( ' enableJBossSnapshotsRep' ) ) {
42
41
// Used only for testing with the latest Hibernate ORM snapshots.
43
42
maven { url ' https://repository.jboss.org/nexus/content/repositories/snapshots' }
44
43
}
45
44
}
46
45
dependencies {
47
- classpath " org.hibernate.orm:hibernate-gradle-plugin:${ hibernateOrmVersion } "
46
+ classpath " org.hibernate.orm:hibernate-gradle-plugin:${ hibernateOrmGradlePluginVersion } "
48
47
}
49
48
}
50
49
Original file line number Diff line number Diff line change @@ -28,27 +28,27 @@ dependencies {
28
28
buildscript {
29
29
repositories {
30
30
// Example: ./gradlew build -PenableMavenLocalRepo
31
- if ( project. hasProperty(' enableMavenLocalRepo' ) ) {
31
+ if ( project. hasProperty( ' enableMavenLocalRepo' ) ) {
32
32
// Useful for local development, it should be disabled otherwise
33
33
mavenLocal()
34
34
}
35
35
maven {
36
- url = uri( " https://plugins.gradle.org/m2/" )
36
+ url ' https://plugins.gradle.org/m2/'
37
37
}
38
-
39
38
mavenCentral()
40
39
41
40
// Example: ./gradlew build -PenableJBossSnapshotsRep
42
- if ( project. hasProperty(' enableJBossSnapshotsRep' ) ) {
41
+ if ( project. hasProperty( ' enableJBossSnapshotsRep' ) ) {
43
42
// Used only for testing with the latest Hibernate ORM snapshots.
44
43
maven { url ' https://repository.jboss.org/nexus/content/repositories/snapshots' }
45
44
}
46
45
}
47
46
dependencies {
48
- classpath " org.hibernate.orm:hibernate-gradle-plugin:${ hibernateOrmVersion } "
47
+ classpath " org.hibernate.orm:hibernate-gradle-plugin:${ hibernateOrmGradlePluginVersion } "
49
48
}
50
49
}
51
50
51
+
52
52
// Hibernate Gradle plugin to enable bytecode enhancements
53
53
apply plugin : ' org.hibernate.orm'
54
54
Original file line number Diff line number Diff line change @@ -35,11 +35,16 @@ enableSonatypeOpenSourceSnapshotsRep = true
35
35
# enableJBossSnapshotsRep = true
36
36
37
37
# Enable the maven local repository (for local development when needed) when present (value ignored)
38
- enableMavenLocalRepo = true
38
+ # enableMavenLocalRepo = true
39
39
40
40
# Override default Hibernate ORM version
41
41
hibernateOrmVersion = 6.2.0-SNAPSHOT
42
42
43
+ # Override default Hibernate ORM Gradle plugin version
44
+ # Using the stable version because I don't know how to configure the build to download the snapshot version from
45
+ # a remote repository
46
+ hibernateOrmGradlePluginVersion = 6.2.0.CR4
47
+
43
48
# If set to true, skip Hibernate ORM version parsing (default is true, if set to null)
44
49
# this is required when using intervals or weird versions or the build will fail
45
50
# skipOrmVersionParsing = true
Original file line number Diff line number Diff line change @@ -30,27 +30,27 @@ dependencies {
30
30
buildscript {
31
31
repositories {
32
32
// Example: ./gradlew build -PenableMavenLocalRepo
33
- if ( project. hasProperty(' enableMavenLocalRepo' ) ) {
33
+ if ( project. hasProperty( ' enableMavenLocalRepo' ) ) {
34
34
// Useful for local development, it should be disabled otherwise
35
35
mavenLocal()
36
36
}
37
37
maven {
38
- url = uri( " https://plugins.gradle.org/m2/" )
38
+ url ' https://plugins.gradle.org/m2/'
39
39
}
40
-
41
40
mavenCentral()
42
41
43
42
// Example: ./gradlew build -PenableJBossSnapshotsRep
44
- if ( project. hasProperty(' enableJBossSnapshotsRep' ) ) {
43
+ if ( project. hasProperty( ' enableJBossSnapshotsRep' ) ) {
45
44
// Used only for testing with the latest Hibernate ORM snapshots.
46
45
maven { url ' https://repository.jboss.org/nexus/content/repositories/snapshots' }
47
46
}
48
47
}
49
48
dependencies {
50
- classpath " org.hibernate.orm:hibernate-gradle-plugin:${ hibernateOrmVersion } "
49
+ classpath " org.hibernate.orm:hibernate-gradle-plugin:${ hibernateOrmGradlePluginVersion } "
51
50
}
52
51
}
53
52
53
+
54
54
// Hibernate Gradle plugin to enable bytecode enhancements
55
55
apply plugin : ' org.hibernate.orm'
56
56
You can’t perform that action at this time.
0 commit comments