Skip to content

Commit 3e1f6b5

Browse files
committed
fix hibernate-scan-jandex definitions
1 parent 2cc77fa commit 3e1f6b5

File tree

5 files changed

+26
-15
lines changed

5 files changed

+26
-15
lines changed

gradle/published-java-module.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,19 @@ dependencies {
2828
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2929
// Publishing
3030

31+
publishing {
32+
publications {
33+
// main publication
34+
publishedArtifacts {
35+
// Add the Java component to the main publication
36+
from components.java
37+
}
38+
}
39+
}
40+
3141
java {
42+
// include javadoc and sources jar in the Java component
43+
// - classes jar included by default
3244
withJavadocJar()
3345
withSourcesJar()
3446
}

gradle/relocated-published-java-module.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ apply from: rootProject.file( 'gradle/published-java-module.gradle' )
88

99
publishing {
1010
publications {
11-
// main publication
12-
publishedArtifacts {
13-
from components.java
14-
}
15-
1611
// relocation for the published artifacts based on the old groupId
1712
relocationPom( MavenPublication ) {
1813
pom {

hibernate-core/hibernate-core.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ dependencies {
4848
// annotationProcessor project( ":annotation-descriptor-generator" )
4949
compileOnly project( ":annotation-descriptor-generator" )
5050

51-
runtimeOnly project(':hibernate-scan-jandex')
52-
5351
testImplementation project(':hibernate-testing')
5452
testImplementation project(':hibernate-ant')
5553
testImplementation project(':hibernate-scan-jandex')

hibernate-core/src/main/java/org/hibernate/boot/archive/scan/spi/ScannerFactory.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,23 @@
44
*/
55
package org.hibernate.boot.archive.scan.spi;
66

7+
import org.hibernate.Incubating;
78
import org.hibernate.boot.archive.spi.ArchiveDescriptorFactory;
9+
import org.hibernate.service.JavaServiceLoadable;
810
import org.hibernate.service.Service;
911

12+
/**
13+
* Support for scanning various sources to detect {@code managed resources}
14+
* for a {@code persistence unit}.
15+
*
16+
*/
17+
@Incubating
18+
@JavaServiceLoadable
1019
public interface ScannerFactory extends Service {
20+
/**
21+
* Create a scanner
22+
* @param archiveDescriptorFactory
23+
* @return
24+
*/
1125
Scanner getScanner(ArchiveDescriptorFactory archiveDescriptorFactory);
1226
}

hibernate-scan-jandex/hibernate-scan-jandex.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,9 @@ description = 'Integrate support for Jandex into Hibernate O/RM'
22

33
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
44

5-
65
dependencies {
76
api project( ':hibernate-core' )
87
api jakartaLibs.jpa
98

109
implementation libs.jandex
11-
12-
testImplementation project( ':hibernate-testing' )
13-
1410
}
15-
16-
sourceSets.test.resources {
17-
setSrcDirs( ['src/test/resources'] )
18-
}

0 commit comments

Comments
 (0)