fix hibernate-scan-jandex definitions
This commit is contained in:
parent
2cc77fabd1
commit
3e1f6b52c6
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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'] )
|
||||
}
|
Loading…
Reference in New Issue