Skip to content

Commit

Permalink
Fix and update building
Browse files Browse the repository at this point in the history
  • Loading branch information
ozraru committed Mar 10, 2024
1 parent d738414 commit 6fdd968
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 31 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
allprojects {
apply plugin: 'java'

group = 'work.raru.discordchat'
version = "0.6"

jar {
Expand Down
16 changes: 3 additions & 13 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ targetCompatibility = 1.8
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'

// As of Gradle 5.1, you can limit this to only those
// dependencies you expect from it
content {
includeGroup 'org.bukkit'
includeGroup 'org.spigotmc'
}
}
maven {
name 'm2-dv8tion'
url 'https://m2.dv8tion.net/releases'
Expand All @@ -36,9 +26,9 @@ dependencies {

implementation 'com.vdurmont:emoji-java:5.1.1'

implementation 'com.google.code.gson:gson:2.9.+'
implementation 'com.google.code.gson:gson:2.10.+'

implementation 'org.xerial:sqlite-jdbc:3.39.+'
implementation 'org.xerial:sqlite-jdbc:3.45.+'

implementation 'org.postgresql:postgresql:42.5.+'
implementation 'org.postgresql:postgresql:42.7.+'
}
15 changes: 7 additions & 8 deletions forge12/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ buildscript {
}

dependencies {
classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
classpath 'net.kyori:blossom:1.3.0'
classpath 'gradle.plugin.com.github.johnrengelman:shadow:8.+'
classpath 'net.minecraftforge.gradle:ForgeGradle:6.+'
}
}
Expand All @@ -17,25 +16,20 @@ apply plugin: 'net.minecraftforge.gradle'
sourceCompatibility = 1.8
targetCompatibility = 1.8

// blossom {
// replaceTokenIn 'src/main/java/me/lucko/luckperms/forge/LPForgeBootstrap.java'
// replaceToken '@version@', project.ext.fullVersion
// }

minecraft {
mappings channel: 'snapshot', version: '20171003-1.12'
}

configurations {
shadowDep
implementation.extendsFrom shadowDep
}

repositories {
}

dependencies {
minecraft "net.minecraftforge:forge:${minecraftVersion}-${forgeVersion}"
implementation project(':common')
shadowDep project(':common')
}

Expand Down Expand Up @@ -67,6 +61,11 @@ shadowJar {
relocate 'org.postgresql', 'work.raru.discordchat.libs.org.postgresql'
relocate 'org.slf4j', 'work.raru.discordchat.libs.org.slf4j'
// relocate 'org.sqlite', 'work.raru.discordchat.libs.org.sqlite'

exclude 'module-info.class'
exclude 'META-INF/maven/**'
exclude 'META-INF/proguard/**'
exclude 'META-INF/versions/**'
}

artifacts {
Expand Down
15 changes: 7 additions & 8 deletions forge16/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ buildscript {
}

dependencies {
classpath 'gradle.plugin.com.github.johnrengelman:shadow:7.1.2'
classpath 'net.kyori:blossom:1.3.0'
classpath 'gradle.plugin.com.github.johnrengelman:shadow:8.+'
classpath 'net.minecraftforge.gradle:ForgeGradle:6.+'
}
}
Expand All @@ -17,25 +16,20 @@ apply plugin: 'net.minecraftforge.gradle'
sourceCompatibility = 1.8
targetCompatibility = 1.8

// blossom {
// replaceTokenIn 'src/main/java/me/lucko/luckperms/forge/LPForgeBootstrap.java'
// replaceToken '@version@', project.ext.fullVersion
// }

minecraft {
mappings channel: 'official', version: minecraftVersion
}

configurations {
shadowDep
implementation.extendsFrom shadowDep
}

repositories {
}

dependencies {
minecraft "net.minecraftforge:forge:${minecraftVersion}-${forgeVersion}"
implementation project(':common')
shadowDep project(':common')
}

Expand Down Expand Up @@ -67,6 +61,11 @@ shadowJar {
relocate 'org.postgresql', 'work.raru.discordchat.libs.org.postgresql'
relocate 'org.slf4j', 'work.raru.discordchat.libs.org.slf4j'
// relocate 'org.sqlite', 'work.raru.discordchat.libs.org.sqlite'

exclude 'module-info.class'
exclude 'META-INF/maven/**'
exclude 'META-INF/proguard/**'
exclude 'META-INF/versions/**'
}

artifacts {
Expand Down
2 changes: 1 addition & 1 deletion forge19/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'eclipse'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.+'
id 'com.github.johnrengelman.shadow' version '8.+'
id 'net.minecraftforge.gradle' version '6.+'
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit 6fdd968

Please sign in to comment.