Skip to content

Commit

Permalink
Remove some unnecessary gradle config
Browse files Browse the repository at this point in the history
  • Loading branch information
legobmw99 committed Jan 16, 2024
1 parent 1a884e4 commit 758d45e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 30 deletions.
7 changes: 0 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ subprojects {
apply plugin: 'java'

java.toolchain.languageVersion = JavaLanguageVersion.of(17)
java.withSourcesJar()

jar {
from(rootProject.file("LICENSE")) {
Expand All @@ -29,12 +28,6 @@ subprojects {
}
}

sourcesJar {
from(rootProject.file("LICENSE")) {
rename { "${it}_${mod_name}" }
}
}

repositories {
mavenCentral()
}
Expand Down
9 changes: 2 additions & 7 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id 'fabric-loom' version '1.4-SNAPSHOT'
}
base {
archivesName = "${mod_name}-fabric-${minecraft_version}"
archivesName = "${mod_name}-fabric"
}
dependencies {
minecraft "com.mojang:minecraft:${minecraft_version}"
Expand Down Expand Up @@ -42,12 +42,7 @@ loom {
tasks.withType(JavaCompile).configureEach {
source(project(":common").sourceSets.main.allSource)
}
tasks.withType(Javadoc).configureEach {
source(project(":common").sourceSets.main.allJava)
}
tasks.named("sourcesJar", Jar) {
from(project(":common").sourceSets.main.allSource)
}


processResources {
from project(":common").sourceSets.main.resources
Expand Down
8 changes: 1 addition & 7 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
}
base {
archivesName = "${mod_name}-${version}-forge"
archivesName = "${mod_name}-forge"
}


Expand Down Expand Up @@ -63,12 +63,6 @@ dependencies {
tasks.withType(JavaCompile).configureEach {
source(project(":common").sourceSets.main.allSource)
}
tasks.withType(Javadoc).configureEach {
source(project(":common").sourceSets.main.allJava)
}
tasks.named("sourcesJar", Jar) {
from(project(":common").sourceSets.main.allSource)
}

processResources {
from project(":common").sourceSets.main.resources
Expand Down
10 changes: 1 addition & 9 deletions neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id 'java-library'
}
base {
archivesName = "${mod_name}-${version}-neoforge"
archivesName = "${mod_name}-neoforge"
}

runs {
Expand Down Expand Up @@ -43,14 +43,6 @@ tasks.withType(JavaCompile).matching(notNeoTask).configureEach {
source(project(":common").sourceSets.main.allSource)
}

tasks.withType(Javadoc).matching(notNeoTask).configureEach {
source(project(":common").sourceSets.main.allJava)
}

tasks.named("sourcesJar", Jar) {
from(project(":common").sourceSets.main.allSource)
}

tasks.withType(ProcessResources).matching(notNeoTask).configureEach {
from project(":common").sourceSets.main.resources
}
Expand Down

0 comments on commit 758d45e

Please sign in to comment.