Browse Source

Push files for testing

master
Martmists 3 years ago
parent
commit
4722ed7062
  1. 1
      .gitignore
  2. 11
      compat/1.16/build.gradle
  3. 2
      gradle.properties
  4. 20
      versions/common.gradle

1
.gitignore vendored

@ -2,3 +2,4 @@ @@ -2,3 +2,4 @@
build/
run/
.gradle/
dist/

11
compat/1.16/build.gradle

@ -12,9 +12,16 @@ buildscript { @@ -12,9 +12,16 @@ buildscript {
}
apply plugin: 'fabric-loom'
apply plugin: 'java'
apply plugin: "idea"
sourceSets {
main {
java {
srcDirs = ["src/main/java"]
}
}
}
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
@ -35,4 +42,6 @@ repositories { @@ -35,4 +42,6 @@ repositories {
}
setBuildDir("../../build")
sourceCompatibility = 1.8
targetCompatibility = 1.8
archivesBaseName = "internal-compat-${project.name}"

2
gradle.properties

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx2G
mod_version=0.1.1
mod_version=0.1.2
mod_name=ynet

20
versions/common.gradle

@ -5,17 +5,18 @@ apply plugin: 'idea' @@ -5,17 +5,18 @@ apply plugin: 'idea'
sourceCompatibility = 1.8
targetCompatibility = 1.8
archivesBaseName = "${project.mod_name}-${project.mod_version}-${project.minecraft_version}"
String root = rootDir.absolutePath
dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modCompile "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modCompileOnly "TechReborn:${project.tr_slug}"
if (project.name == "1.16") {
implementation project(":compat:1.16")
include project(":compat:1.16")
implementation project(":compat:${project.name}")
include project(":compat:${project.name}")
}
modImplementation "com.github.vini2003:spinnery:${project.spinnery_version}"
@ -51,10 +52,11 @@ setBuildDir("../../build") @@ -51,10 +52,11 @@ setBuildDir("../../build")
sourceSets {
main {
java {
srcDirs = ["../../src/main/java"]
srcDirs = ["${root}/src/main/java"]
exclude "**/compat/**/*.java"
}
resources {
srcDirs = ["../../src/main/resources"]
srcDirs = ["${root}/src/main/resources"]
}
}
}
@ -73,6 +75,14 @@ task apiJar(type: Jar, dependsOn: classes) { @@ -73,6 +75,14 @@ task apiJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource.filter { it.path.contains("/api/") }
}
task deleteDev(type: Delete) {
delete "${root}/build/libs/${archivesBaseName}-dev.jar"
delete "${root}/build/libs/${archivesBaseName}-sources-dev.jar"
}
jar.dependsOn apiJar
jar.dependsOn sourcesJar
deleteDev.dependsOn remapJar
deleteDev.dependsOn remapSourcesJar
build.dependsOn jar
build.dependsOn deleteDev

Loading…
Cancel
Save