Skip to content

Commit

Permalink
Merge pull request #338 from ClubObsidian/fix/publishing
Browse files Browse the repository at this point in the history
Attempt to fix maven publishing
  • Loading branch information
virustotalop authored Nov 24, 2023
2 parents 25d2b57 + d87fcc0 commit 41ccd16
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 41ccd16

Please sign in to comment.