Skip to content

Commit

Permalink
Only deploy API
Browse files Browse the repository at this point in the history
  • Loading branch information
Redned235 committed Jun 25, 2024
1 parent e6cd5dc commit 6133f24
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 52 deletions.
50 changes: 50 additions & 0 deletions api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
plugins {
id("maven-publish")
}

dependencies {
compileOnlyApi(libs.paper.api)
}

publishing {
val isSnapshot = "SNAPSHOT" in version.toString()

repositories {
maven {
name = "battleplugins"
url = uri("https://repo.battleplugins.org/${if (isSnapshot) "snapshots" else "releases"}")
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}

publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
pom {
packaging = "jar"
url.set("https://github.com/BattlePlugins/VirtualPlayers")

scm {
connection.set("scm:git:git://github.com/BattlePlugins/VirtualPlayers.git")
developerConnection.set("scm:git:ssh://github.com/BattlePlugins/VirtualPlayers.git")
url.set("https://github.com/BattlePlugins/VirtualPlayers");
}

licenses {
license {
name.set("GNU General Public License v3.0")
url.set("https://www.gnu.org/licenses/gpl-3.0.html")
}
}

developers {
developer {
name.set("BattlePlugins Team")
organization.set("BattlePlugins")
organizationUrl.set("https://github.com/BattlePlugins")
}
}
}
}
}
}
}
53 changes: 1 addition & 52 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
plugins {
id("java")
id("java-library")
id("maven-publish")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("com.github.johnrengelman.shadow") version "8.1.1" apply false
}

allprojects {
apply {
plugin("java")
plugin("java-library")
plugin("maven-publish")
plugin("com.github.johnrengelman.shadow")
}

group = "org.battleplugins.virtualplayers"
Expand All @@ -27,52 +24,4 @@ allprojects {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
}

subprojects {
publishing {
val isSnapshot = "SNAPSHOT" in version.toString()

repositories {
maven {
name = "battleplugins"
url = uri("https://repo.battleplugins.org/${if (isSnapshot) "snapshots" else "releases"}")
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}

publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
pom {
packaging = "jar"
url.set("https://github.com/BattlePlugins/VirtualPlayers")

scm {
connection.set("scm:git:git://github.com/BattlePlugins/VirtualPlayers.git")
developerConnection.set("scm:git:ssh://github.com/BattlePlugins/VirtualPlayers.git")
url.set("https://github.com/BattlePlugins/VirtualPlayers");
}

licenses {
license {
name.set("GNU General Public License v3.0")
url.set("https://www.gnu.org/licenses/gpl-3.0.html")
}
}

developers {
developer {
name.set("BattlePlugins Team")
organization.set("BattlePlugins")
organizationUrl.set("https://github.com/BattlePlugins")
}
}
}
}
}
}
}
}
1 change: 1 addition & 0 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id("io.papermc.paperweight.userdev") version "1.7.1"
id("xyz.jpenilla.run-paper") version "2.3.0"
id("com.modrinth.minotaur") version "2.+"
id("com.github.johnrengelman.shadow")
}

val supportedVersions = listOf("1.20.6", "1.21")
Expand Down

0 comments on commit 6133f24

Please sign in to comment.