Skip to content

Commit

Permalink
Simplify build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Dec 26, 2024
1 parent 140427c commit 6b4322c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 56 deletions.
31 changes: 3 additions & 28 deletions anitorrent-native-desktop-jni/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,38 +38,13 @@ tasks.compileJava {
dependsOn(copyGeneratedSwigJava)
}

description = "Anitorrent Native"

mavenPublishing {
configure(JavaLibrary(JavadocJar.Empty(), true))
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()

pom {
name = "Anitorrent Native"
description = "Anitorrent Native"
url = "https://github.com/open-ani/anitorrent"

licenses {
license {
name = "GNU General Public License, Version 3"
url = "https://github.com/open-ani/anitorrent/blob/main/LICENSE"
distribution = "https://www.gnu.org/licenses/gpl-3.0.txt"
}
}

developers {
developer {
id = "openani"
name = "OpenAni and contributors"
email = "[email protected]"
}
}

scm {
connection = "scm:git:https://github.com/open-ani/anitorrent.git"
developerConnection = "scm:git:[email protected]:open-ani/anitorrent.git"
url = "https://github.com/open-ani/anitorrent"
}
}
configurePom(project)
}

tasks.getByName("sourcesJar") {
Expand Down
31 changes: 3 additions & 28 deletions anitorrent-native/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -479,38 +479,13 @@ idea {
}
}

description = "Anitorrent Native"

mavenPublishing {
configure(KotlinMultiplatform(JavadocJar.Empty(), true, androidVariantsToPublish = listOf("release", "debug")))
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()

pom {
name = "Anitorrent Native"
description = "Anitorrent Native"
url = "https://github.com/open-ani/anitorrent"

licenses {
license {
name = "GNU General Public License, Version 3"
url = "https://github.com/open-ani/anitorrent/blob/main/LICENSE"
distribution = "https://www.gnu.org/licenses/gpl-3.0.txt"
}
}

developers {
developer {
id = "openani"
name = "OpenAni and contributors"
email = "[email protected]"
}
}

scm {
connection = "scm:git:https://github.com/open-ani/anitorrent.git"
developerConnection = "scm:git:[email protected]:open-ani/anitorrent.git"
url = "https://github.com/open-ani/anitorrent"
}
}
configurePom(project)
}

tasks.matching { it.name.startsWith("publishDesktopPublicationTo") }.all {
Expand Down

0 comments on commit 6b4322c

Please sign in to comment.