Skip to content

Commit

Permalink
Attempt to fix maven publishing
Browse files Browse the repository at this point in the history
There are some issues with getting javadoc jars with jitpack this should fix it.
  • Loading branch information
virustotalop committed Nov 24, 2023
1 parent 25d2b57 commit d87fcc0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'java'
id 'java-library'
}

dependencies {
Expand Down
27 changes: 18 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,33 @@ subprojects {
apply plugin: 'org.cadixdev.licenser'
apply plugin: 'maven-publish'

java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
withJavadocJar()
withSourcesJar()
}

javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}

publishing {
publications {
shadow(MavenPublication) {
mavenJava(MavenPublication) {
groupId projectGroup
artifactId project.name
version projectVersion
artifact shadowJar
artifact jar
artifact javadocJar
artifact sourcesJar
}
}
}

java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
withJavadocJar()
}

license {
header = project.rootProject.file('HEADER.txt')
include '**/*.java'
Expand Down

0 comments on commit d87fcc0

Please sign in to comment.