Skip to content

Commit

Permalink
wip: merge sources and javadoc to root jar
Browse files Browse the repository at this point in the history
  • Loading branch information
Im-Fran committed Jan 16, 2024
1 parent 0a63f94 commit e0fd964
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
16 changes: 16 additions & 0 deletions build.gradle.kts
Expand Up @@ -17,6 +17,7 @@ allprojects {
plugin("com.github.johnrengelman.shadow")
plugin("cl.franciscosolis.gradledotenv")
plugin("org.jetbrains.kotlin.jvm")
plugin("org.jetbrains.dokka")
}

/*
Expand Down Expand Up @@ -46,6 +47,21 @@ allprojects {
}
}

subprojects {
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
withJavadocJar()
}

tasks {
jar {
dependsOn(dokkaJavadoc)
}
}
}

dependencies {
implementation(project(":build-info", "shadow"))
implementation(project(":simplecoreapi", "shadow"))
Expand Down
7 changes: 0 additions & 7 deletions simplecoreapi/build.gradle.kts
Expand Up @@ -71,13 +71,6 @@ tasks {
options.encoding = "UTF-8"
}

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
withJavadocJar()
}

jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
Expand Down

0 comments on commit e0fd964

Please sign in to comment.