Skip to content

Commit

Permalink
more fixing jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
samolego committed Mar 25, 2023
1 parent 7266617 commit 51402e0
Showing 1 changed file with 18 additions and 25 deletions.
43 changes: 18 additions & 25 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,24 @@ allprojects {
toolchain.languageVersion.set(JavaLanguageVersion.of(javaTarget))
}
}

publishing {
publications {
mavenJava(MavenPublication) {
artifactId = rootProject.archives_base_name + "-" + project.name
from components.java
}
}

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
mavenLocal()
}
}
}

subprojects {
Expand Down Expand Up @@ -103,24 +121,6 @@ subprojects {
tasks.withType(JavaCompile) {
source(project(":common").sourceSets.main.allSource)
}

publishing {
publications {
mavenJava(MavenPublication) {
artifactId = rootProject.archives_base_name + "-" + project.name
from components.java
}
}

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
mavenLocal()
}
}
}

tasks.withType(dokkaHtmlPartial.getClass()).configureEach {
Expand All @@ -129,13 +129,6 @@ subprojects {
)
}

/*java {
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
}*/

jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
Expand Down

0 comments on commit 51402e0

Please sign in to comment.