Skip to content

Commit

Permalink
migrate to monumenta maven
Browse files Browse the repository at this point in the history
  • Loading branch information
Floweynt committed Jul 5, 2024
1 parent 4fd738a commit 0ced9bc
Show file tree
Hide file tree
Showing 43 changed files with 46 additions and 162 deletions.
36 changes: 20 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,25 @@ Minimum Java version: Java 17
Recommended Minecraft Version: 1.16.5+ (older versions may work too, but are not supported)

## Maven dependency
Maven:
```xml
<repositories>
<repository>
<id>libraryofsouls</id>
<url>https://raw.githubusercontent.com/TeamMonumenta/library-of-souls/master/mvn-repo/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>com.playmonumenta</groupId>
<artifactId>libraryofsouls</artifactId>
<version>5.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
<repository>
<id>monumenta</id>
<name>Monumenta Maven Repo</name>
<url>https://maven.playmonumenta.com/releases</url>
</repository>
```
Gradle (kotlin):
```kts
maven {
name = "monumenta"
url = uri("https://maven.playmonumenta.com/releases")
}
```
Gradle (groovy):
```groovy
maven {
name "monumenta"
url "https://maven.playmonumenta.com/releases"
}
```

63 changes: 25 additions & 38 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,42 +11,21 @@ plugins {
id("net.minecrell.plugin-yml.bukkit") version "0.5.1" // Generates plugin.yml
id("net.ltgt.errorprone") version "2.0.2"
id("net.ltgt.nullaway") version "1.3.0"
id("com.playmonumenta.deployment") version "1.0"
id("com.playmonumenta.deployment") version "1.+"
checkstyle
pmd
}

repositories {
mavenLocal()
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
}

maven {
url = uri("https://jitpack.io")
}

maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
}

maven {
url = uri("https://raw.githubusercontent.com/TeamMonumenta/monumenta-redis-sync/master/mvn-repo/")
}

maven {
url = uri("https://raw.githubusercontent.com/TeamMonumenta/NBTEditor/master/mvn-repo/")
}

maven("https://repo.papermc.io/repository/maven-public/")
maven("https://jitpack.io")
maven("https://oss.sonatype.org/content/repositories/snapshots/")
maven("https://raw.githubusercontent.com/TeamMonumenta/monumenta-redis-sync/master/mvn-repo/")
maven("https://raw.githubusercontent.com/TeamMonumenta/NBTEditor/master/mvn-repo/")
// NBT API, pulled in by CommandAPI
maven {
url = uri("https://repo.codemc.org/repository/maven-public/")
}

maven {
url = uri("https://repo.maven.apache.org/maven2/")
}

maven("https://repo.codemc.org/repository/maven-public/")
maven("https://repo.maven.apache.org/maven2/")
maven("https://repo.codemc.org/repository/maven-public/")
}

Expand Down Expand Up @@ -85,19 +64,27 @@ pmd {
setIgnoreFailures(true)
}

tasks.shadowJar {
archiveClassifier.set("")
}

publishing {
publications.create<MavenPublication>("maven") {
project.shadow.component(this)
from(components["java"])
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/TeamMonumenta/library-of-souls")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
maven {
name = "MonumentaMaven"
url = when (version.toString().endsWith("SNAPSHOT")) {
true -> uri("https://maven.playmonumenta.com/snapshots")
false -> uri("https://maven.playmonumenta.com/releases")
}

credentials {
username = System.getenv("USERNAME")
password = System.getenv("TOKEN")
}
}
}
}

Expand Down
16 changes: 0 additions & 16 deletions buildSrc/build.gradle.kts

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions mvn-repo/com/playmonumenta/libraryofsouls/maven-metadata.xml

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ rootProject.name = "libraryofsouls"
pluginManagement {
repositories {
gradlePluginPortal()
maven("https://maven.floweytf.com/releases/")
maven("https://maven.playmonumenta.com/releases/")
}
}

0 comments on commit 0ced9bc

Please sign in to comment.