Out of jitpack

This commit is contained in:
Tofaa 2024-07-26 11:38:45 +04:00
parent 96e1401d0a
commit 266e4e6c4e
3 changed files with 20 additions and 8 deletions

View file

@ -9,31 +9,31 @@ You can easily use EntityLib platformless by using the `api` or `common` module
Gradle (Groovy DSL):
```groovy
//https://jitpack.io/#Tofaa2/EntityLib/
//https://maven.evokegames.gg/#/snapshots/me/tofaa/entitylib
repositories {
maven { url 'https://jitpack.io' }
maven { url 'https://maven.evokegames.gg/snapshots' }
}
dependencies {
implementation 'com.github.Tofaa2.EntityLib:<platform>:<latest-release-version'
implementation 'me.tofaa.entitylib:<platform>:<latest-release-version'
}
```
Gradle (Kotlin DSL):
```kotlin
repositories {
maven(url = "https://jitpack.io")
maven(url = "https://maven.evokegames.gg/snapshots")
}
dependencies {
implementation("com.github.Tofaa2.EntityLib:<platform>:<latest-release-version>")
implementation("me.tofaa.entitylib:<platform>:<latest-release-version>")
}
```
Maven:
```xml
<dependency>
<groupId>com.github.Tofaa2.EntityLib</groupId>
<groupId>me.tofaa.entitylib</groupId>
<artifactId>(platform)</artifactId>
<version>(latest-release-version)</version>
</dependency>

View file

@ -45,6 +45,17 @@ tasks {
}
publishing {
repositories {
maven {
url = uri("https://maven.evokegames.gg/snapshots")
credentials {
username = System.getenv("TYCOONS_REPO_USER")
password = System.getenv("TYCOONS_REPO_PASS")
}
}
}
publications {
create<MavenPublication>("EntityLib") {
groupId = project.group as String

View file

@ -5,14 +5,15 @@ plugins {
}
repositories {
maven("https://maven.evokegames.gg/snapshots")
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
compileOnly(libs.paper)
compileOnly(libs.packetevents.spigot)
implementation("com.github.Tofaa2.EntityLib:spigot:24887cb05a")
implementation(project(":platforms:spigot"))
implementation("me.tofaa.entitylib:spigot:2.4.5-SNAPSHOT")
// implementation(project(":platforms:spigot"))
}
tasks {