summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-03-04 15:07:12 +0100
committer zaaarf <zaaarf@proton.me>2023-03-04 15:07:12 +0100
commit8983a271f851f0a369cff9bb01010f8d5ff58e2f (patch)
tree1d76f59b0f95361a5b941a421ae38ee58d5c5d4d
parentf0530990731d52788cebfc6421276b720b1ccd92 (diff)
build: should now also build sources and javadocs jar
-rw-r--r--build.gradle9
1 files changed, 7 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle
index 0ef9c64..a4a0c2f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -6,7 +6,12 @@ plugins {
archivesBaseName = 'lll'
version = gitVersion()
-java.toolchain.languageVersion = JavaLanguageVersion.of(8)
+java {
+ sourceCompatibility = JavaVersion.VERSION_1_8
+ targetCompatibility = JavaVersion.VERSION_1_8
+ withSourcesJar()
+ withJavadocJar()
+}
repositories {
mavenCentral()
@@ -20,4 +25,4 @@ dependencies {
jar {
archiveFileName = "${jar.archiveBaseName.get()}-${project.version.split('-')[0]}.${jar.archiveExtension.get()}"
-} \ No newline at end of file
+}