Skip to content

Commit

Permalink
Major Gradle Changes 😭
Browse files Browse the repository at this point in the history
  • Loading branch information
Outspending committed Dec 28, 2023
1 parent 5d96aed commit 4f30ac4
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 117 deletions.
20 changes: 0 additions & 20 deletions BiomesAPI-1.19_R2/build.gradle
Original file line number Diff line number Diff line change
@@ -1,28 +1,8 @@
plugins {
id 'java'
id 'io.papermc.paperweight.userdev' version '1.5.11'
}

group = 'com.github.Outspending'
version = '0.0.1'

repositories {
mavenCentral()
maven {
name = "papermc-repo"
url = "https://repo.papermc.io/repository/maven-public/"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/groups/public/"
}
}

dependencies {
paperweight.paperDevBundle('1.19.3-R0.1-SNAPSHOT')

implementation project(':BiomesAPI-NMS')

compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
}
20 changes: 0 additions & 20 deletions BiomesAPI-1.19_R3/build.gradle
Original file line number Diff line number Diff line change
@@ -1,28 +1,8 @@
plugins {
id 'java'
id 'io.papermc.paperweight.userdev' version '1.5.11'
}

group = 'com.github.Outspending'
version = '0.0.1'

repositories {
mavenCentral()
maven {
name = "papermc-repo"
url = "https://repo.papermc.io/repository/maven-public/"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/groups/public/"
}
}

dependencies {
paperweight.paperDevBundle('1.19.4-R0.1-SNAPSHOT')

implementation project(':BiomesAPI-NMS')

compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
}
20 changes: 0 additions & 20 deletions BiomesAPI-1.20_R1/build.gradle
Original file line number Diff line number Diff line change
@@ -1,28 +1,8 @@
plugins {
id 'java'
id 'io.papermc.paperweight.userdev' version '1.5.11'
}

group = 'com.github.Outspending'
version = '0.0.1'

repositories {
mavenCentral()
maven {
name = "papermc-repo"
url = "https://repo.papermc.io/repository/maven-public/"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/groups/public/"
}
}

dependencies {
paperweight.paperDevBundle('1.20-R0.1-SNAPSHOT')

implementation project(':BiomesAPI-NMS')

compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
}
20 changes: 0 additions & 20 deletions BiomesAPI-1.20_R2/build.gradle
Original file line number Diff line number Diff line change
@@ -1,28 +1,8 @@
plugins {
id 'java'
id 'io.papermc.paperweight.userdev' version '1.5.11'
}

group = 'com.github.Outspending'
version = '0.0.1'

repositories {
mavenCentral()
maven {
name = "papermc-repo"
url = "https://repo.papermc.io/repository/maven-public/"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/groups/public/"
}
}

dependencies {
paperweight.paperDevBundle('1.20.2-R0.1-SNAPSHOT')

implementation project(':BiomesAPI-NMS')

compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
}
20 changes: 0 additions & 20 deletions BiomesAPI-1.20_R3/build.gradle
Original file line number Diff line number Diff line change
@@ -1,28 +1,8 @@
plugins {
id 'java'
id 'io.papermc.paperweight.userdev' version '1.5.11'
}

group = 'com.github.Outspending'
version = '0.0.1'

repositories {
mavenCentral()
maven {
name = "papermc-repo"
url = "https://repo.papermc.io/repository/maven-public/"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/groups/public/"
}
}

dependencies {
paperweight.paperDevBundle('1.20.3-R0.1-SNAPSHOT')

implementation project(':BiomesAPI-NMS')

compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
}
3 changes: 3 additions & 0 deletions BiomesAPI-NMS/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies {
compileOnly 'io.papermc.paper:paper-api:1.19-R0.1-SNAPSHOT'
}
2 changes: 0 additions & 2 deletions BiomesAPI-NMS/build.gradle/META-INF/MANIFEST.MF

This file was deleted.

31 changes: 16 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,26 @@ plugins {
id 'io.papermc.paperweight.userdev' version '1.5.11'
}

subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
allprojects {

group = 'com.github.Outspending'
version = '0.0.1'

sourceCompatibility = 17
targetCompatibility = 17

// The file for publication.
def buildFile = layout.buildDirectory.file("libs/BiomesAPI-${project.version}.jar")
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

}

// The file for publication.
def buildFile = layout.buildDirectory.file("libs/BiomesAPI-${project.version}.jar")

subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'

repositories {
mavenCentral()
Expand Down Expand Up @@ -62,15 +73,8 @@ subprojects {
distributionType = Wrapper.DistributionType.ALL
}

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

}

group = 'com.github.Outspending'
version = '0.0.1'

repositories {
mavenCentral()
maven {
Expand All @@ -90,11 +94,8 @@ dependencies {
paperweight.paperDevBundle("1.20-R0.1-SNAPSHOT")

implementation project(':BiomesAPI-NMS')

biomesApiVersions.each { version ->
implementation project(path: ":BiomesAPI-${version}", configuration: 'reobf')
}

compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
}

0 comments on commit 4f30ac4

Please sign in to comment.