fix hibernate-scan-jandex definitions

This commit is contained in:
Steve Ebersole 2024-11-13 14:13:08 -06:00
parent 2cc77fabd1
commit 3e1f6b52c6
5 changed files with 26 additions and 15 deletions

View File

@ -28,7 +28,19 @@ dependencies {
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Publishing
publishing {
publications {
// main publication
publishedArtifacts {
// Add the Java component to the main publication
from components.java
}
}
}
java {
// include javadoc and sources jar in the Java component
// - classes jar included by default
withJavadocJar()
withSourcesJar()
}

View File

@ -8,11 +8,6 @@ apply from: rootProject.file( 'gradle/published-java-module.gradle' )
publishing {
publications {
// main publication
publishedArtifacts {
from components.java
}
// relocation for the published artifacts based on the old groupId
relocationPom( MavenPublication ) {
pom {

View File

@ -48,8 +48,6 @@ dependencies {
// annotationProcessor project( ":annotation-descriptor-generator" )
compileOnly project( ":annotation-descriptor-generator" )
runtimeOnly project(':hibernate-scan-jandex')
testImplementation project(':hibernate-testing')
testImplementation project(':hibernate-ant')
testImplementation project(':hibernate-scan-jandex')

View File

@ -4,9 +4,23 @@
*/
package org.hibernate.boot.archive.scan.spi;
import org.hibernate.Incubating;
import org.hibernate.boot.archive.spi.ArchiveDescriptorFactory;
import org.hibernate.service.JavaServiceLoadable;
import org.hibernate.service.Service;
/**
* Support for scanning various sources to detect {@code managed resources}
* for a {@code persistence unit}.
*
*/
@Incubating
@JavaServiceLoadable
public interface ScannerFactory extends Service {
/**
* Create a scanner
* @param archiveDescriptorFactory
* @return
*/
Scanner getScanner(ArchiveDescriptorFactory archiveDescriptorFactory);
}

View File

@ -2,17 +2,9 @@ description = 'Integrate support for Jandex into Hibernate O/RM'
apply from: rootProject.file( 'gradle/published-java-module.gradle' )
dependencies {
api project( ':hibernate-core' )
api jakartaLibs.jpa
implementation libs.jandex
testImplementation project( ':hibernate-testing' )
}
sourceSets.test.resources {
setSrcDirs( ['src/test/resources'] )
}