diff --git a/build.gradle b/build.gradle index 555b4ab..9d3b58a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java' id 'java-library' + id 'maven-publish' } allprojects { @@ -12,9 +13,11 @@ allprojects { "net.kyori:adventure-nbt:${adventureVersion}"] apply plugin: 'java' + apply plugin: 'java-library' + apply plugin: 'maven-publish' group = 'me.tofaa.entitylib' - version = '1.0-SNAPSHOT' + version = '2.0-SNAPSHOT' java.sourceCompatibility = JavaVersion.VERSION_1_8 java.targetCompatibility = JavaVersion.VERSION_1_8 @@ -38,6 +41,16 @@ allprojects { 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 + } + } + } } diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 0000000..3393423 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,2 @@ +jdk: + - 'openjdk8' \ No newline at end of file diff --git a/settings.gradle b/settings.gradle index 6b9d5fb..d75c2f9 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,5 +1,4 @@ rootProject.name = 'EntityLib' -include 'test-plugin' include 'api' include 'platforms:spigot' findProject(':platforms:spigot')?.name = 'spigot' diff --git a/test-plugin/build.gradle b/test-plugin/build.gradle index 69caf37..5d4977e 100644 --- a/test-plugin/build.gradle +++ b/test-plugin/build.gradle @@ -27,7 +27,7 @@ repositories { dependencies { compileOnly('org.spigotmc:spigot-api:1.20.1-R0.1-SNAPSHOT') compileOnly('com.github.retrooper.packetevents:spigot:2.0.2') - implementation(project(":platforms:spigot")) + implementation("com.github.Tofaa2.EntityLib:api:2.0.0-PRE") } tasks {