Skip to content

Commit

Permalink
fixed deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunekaer committed Aug 3, 2023
1 parent b4d1373 commit 0c9cb27
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 18 deletions.
17 changes: 13 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ subprojects {

dependencies {
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
// The following line declares the mojmap mappings, you may use other mappings as well
mappings loom.officialMojangMappings()
// The following line declares the yarn mappings you may select this one as well.
// mappings "net.fabricmc:yarn:1.19+build.2:v2"
}
}

Expand All @@ -45,7 +42,7 @@ allprojects {
}
maven { url 'https://jitpack.io'
content {
includeGroup "com.github.cbyrneee"
includeGroup "com.github.jagrosh"
}
}
maven {
Expand Down Expand Up @@ -100,23 +97,35 @@ publishMods {
from(curseForgeOptions, fabricOptions)
requires {
slug = "fabric-api"
slug = "cloth-config"
slug = "architectury-api"
}
}

curseforge("curseforgeForge") {
from(curseForgeOptions, forgeOptions)
requires {
slug = "cloth-config"
slug = "architectury-api"
}
}

if (providers.environmentVariable("MODRINTH_TOKEN").getOrNull() != null) {
modrinth("modrinthFabric") {
from(modrinthOptions, fabricOptions)
requires {
slug = "fabric-api"
slug = "cloth-config"
slug = "architectury-api"
}
}

modrinth("modrinthForge") {
from(modrinthOptions, forgeOptions)
requires {
slug = "cloth-config"
slug = "architectury-api"
}
}
}
}
6 changes: 4 additions & 2 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ repositories {
dependencies {
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"

implementation('com.github.cbyrneee:DiscordIPC:e18542f600ee48b1eb8cbb255380bba0128dc87e')
shadowCommon('com.github.cbyrneee:DiscordIPC:e18542f600ee48b1eb8cbb255380bba0128dc87e')
implementation 'com.google.code.findbugs:jsr305:3.0.2'

implementation('com.github.jagrosh:DiscordIPC:a8d6631cc9')
shadowCommon('com.github.jagrosh:DiscordIPC:a8d6631cc9')

modApi("me.shedaniel.cloth:cloth-config:${rootProject.cloth_config_version}")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ private void connectClient() {

this.client = new IPCClient(SDRP.config.clientId);
this.client.setListener(new IPCListener() {
@Override
public void onReady(IPCClient client, User user) {
LOGGER.info("Discord client ready");

Expand Down
10 changes: 5 additions & 5 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ dependencies {

modApi("me.shedaniel.cloth:cloth-config-fabric:${rootProject.cloth_config_version}")

implementation 'com.github.cbyrneee:DiscordIPC:e18542f600ee48b1eb8cbb255380bba0128dc87e'
shadowCommon 'com.github.cbyrneee:DiscordIPC:e18542f600ee48b1eb8cbb255380bba0128dc87e'
implementation 'com.github.jagrosh:DiscordIPC:a8d6631cc9'
shadowCommon 'com.github.jagrosh:DiscordIPC:a8d6631cc9'

common(project(path: ":common", configuration: "namedElements")) { transitive false }
shadowCommon(project(path: ":common", configuration: "transformProductionFabric")) { transitive false }
Expand All @@ -57,19 +57,19 @@ shadowJar {
exclude "architectury.common.json"

configurations = [project.configurations.shadowCommon]
classifier "dev-shadow"
setArchiveClassifier("dev-shadow")
}

remapJar {
injectAccessWidener = true
input.set shadowJar.archiveFile
dependsOn shadowJar
archiveBaseName.set "${rootProject.archives_base_name}-${project.name}"
classifier null
setArchiveClassifier(null)
}

jar {
classifier "dev"
setArchiveClassifier("dev")
}

sourcesJar {
Expand Down
12 changes: 6 additions & 6 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ dependencies {

modApi("me.shedaniel.cloth:cloth-config-forge:${rootProject.cloth_config_version}")

implementation 'com.github.cbyrneee:DiscordIPC:e18542f600ee48b1eb8cbb255380bba0128dc87e'
forgeRuntimeLibrary 'com.github.cbyrneee:DiscordIPC:e18542f600ee48b1eb8cbb255380bba0128dc87e'
shadowCommon('com.github.cbyrneee:DiscordIPC:e18542f600ee48b1eb8cbb255380bba0128dc87e')
implementation 'com.github.jagrosh:DiscordIPC:a8d6631cc9'
forgeRuntimeLibrary 'com.github.jagrosh:DiscordIPC:a8d6631cc9'
shadowCommon('com.github.jagrosh:DiscordIPC:a8d6631cc9')

common(project(path: ":common", configuration: "namedElements")) { transitive false }
shadowCommon(project(path: ":common", configuration: "transformProductionForge")) { transitive = false }
Expand All @@ -55,18 +55,18 @@ shadowJar {
exclude "architectury.common.json"

configurations = [project.configurations.shadowCommon]
classifier "dev-shadow"
setArchiveClassifier("dev-shadow")
}

remapJar {
input.set shadowJar.archiveFile
dependsOn shadowJar
archiveBaseName.set "${rootProject.archives_base_name}-${project.name}"
classifier null
setArchiveClassifier(null)
}

jar {
classifier "dev"
setArchiveClassifier("dev")
}

sourcesJar {
Expand Down

0 comments on commit 0c9cb27

Please sign in to comment.