Browse Source

Push files for testing

master
Martmists 1 year ago
parent
commit
4722ed7062
4 changed files with 27 additions and 7 deletions
  1. +1
    -0
      .gitignore
  2. +10
    -1
      compat/1.16/build.gradle
  3. +1
    -1
      gradle.properties
  4. +15
    -5
      versions/common.gradle

+ 1
- 0
.gitignore View File

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

+ 10
- 1
compat/1.16/build.gradle View File

@@ -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 {
}

setBuildDir("../../build")
sourceCompatibility = 1.8
targetCompatibility = 1.8
archivesBaseName = "internal-compat-${project.name}"

+ 1
- 1
gradle.properties View File

@@ -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

+ 15
- 5
versions/common.gradle View File

@@ -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")
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) {
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