Skip to content

Commit

Permalink
HHH-18912 - ORM release process
Browse files Browse the repository at this point in the history
  • Loading branch information
sebersole committed Dec 12, 2024
1 parent 0313a54 commit cc8afa7
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions gradle/published-java-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,29 @@ dependencies {
javadocSources sourceSets.main.allJava
}

java {
// Configure the Java "software component" to include javadoc and sources jars in addition to the classes jar.
// Ultimately, this component is what makes up the publication for this project.
withJavadocJar()
withSourcesJar()
}


// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Publishing

publishing {
publications {
// main publication
publishedArtifacts {
// Add the Java component to the main publication
from components.java
}
var publishingExtension = project.getExtensions().getByType(PublishingExtension) as PublishingExtension
publishingExtension.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()
}

// signing

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Signing

// create a `signPublications` "grouping" task which will execute all Sign tasks
def signPublicationsTask = tasks.register('signPublications')
Expand Down

0 comments on commit cc8afa7

Please sign in to comment.