Skip to content

Commit

Permalink
added generation of the sources and javadoc jars.
Browse files Browse the repository at this point in the history
  • Loading branch information
ErwanDemairy committed Sep 12, 2024
1 parent 4b7a5e1 commit 557ef58
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,23 @@ plugins {
`maven-publish`
id("org.gradlex.extra-java-module-info") version "1.8"
id("com.gradleup.shadow") version "8.3.1"
signing
}

java {
withJavadocJar()
withSourcesJar()
}

tasks.withType<Javadoc> { isFailOnError = false }

repositories {
mavenLocal()
maven {
url = uri("https://repo.maven.apache.org/maven2/")
// change URLs to point to your repos, e.g. http://my.org/repo
val releasesRepoUrl = uri("https://repo.maven.apache.org/maven2/")
val snapshotsRepoUrl = uri(layout.buildDirectory.dir("repos/snapshots"))
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
}
}

Expand Down

0 comments on commit 557ef58

Please sign in to comment.