jitpackyml file

This commit is contained in:
Tofaa 2024-02-17 21:18:29 +04:00
parent f5e4bc381c
commit 49c3ee69ad
4 changed files with 17 additions and 3 deletions

View file

@ -1,6 +1,7 @@
plugins { plugins {
id 'java' id 'java'
id 'java-library' id 'java-library'
id 'maven-publish'
} }
allprojects { allprojects {
@ -12,9 +13,11 @@ allprojects {
"net.kyori:adventure-nbt:${adventureVersion}"] "net.kyori:adventure-nbt:${adventureVersion}"]
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
group = 'me.tofaa.entitylib' group = 'me.tofaa.entitylib'
version = '1.0-SNAPSHOT' version = '2.0-SNAPSHOT'
java.sourceCompatibility = JavaVersion.VERSION_1_8 java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8 java.targetCompatibility = JavaVersion.VERSION_1_8
@ -38,6 +41,16 @@ allprojects {
maven { url = "https://repo.codemc.org/repository/maven-public/" } maven { url = "https://repo.codemc.org/repository/maven-public/" }
} }
publishing {
publications {
mavenJava(MavenPublication) {
groupId = project.group // Group instance of your project
artifactId = "EntityLib"
version = project.version // Version instance of your project
from components.java
}
}
}
} }

2
jitpack.yml Normal file
View file

@ -0,0 +1,2 @@
jdk:
- 'openjdk8'

View file

@ -1,5 +1,4 @@
rootProject.name = 'EntityLib' rootProject.name = 'EntityLib'
include 'test-plugin'
include 'api' include 'api'
include 'platforms:spigot' include 'platforms:spigot'
findProject(':platforms:spigot')?.name = 'spigot' findProject(':platforms:spigot')?.name = 'spigot'

View file

@ -27,7 +27,7 @@ repositories {
dependencies { dependencies {
compileOnly('org.spigotmc:spigot-api:1.20.1-R0.1-SNAPSHOT') compileOnly('org.spigotmc:spigot-api:1.20.1-R0.1-SNAPSHOT')
compileOnly('com.github.retrooper.packetevents:spigot:2.0.2') compileOnly('com.github.retrooper.packetevents:spigot:2.0.2')
implementation(project(":platforms:spigot")) implementation("com.github.Tofaa2.EntityLib:api:2.0.0-PRE")
} }
tasks { tasks {