ViaFabric/build.gradle

58 lines
1.4 KiB
Groovy
Raw Normal View History

2019-01-06 20:11:08 +01:00
import org.apache.tools.ant.filters.*
2018-08-23 19:06:08 +02:00
plugins {
2019-01-05 22:30:41 +01:00
id 'java'
2018-08-23 19:06:08 +02:00
id 'net.minecrell.licenser' version '0.4.1'
2019-01-05 22:30:41 +01:00
id 'fabric-loom' version '0.2.0-SNAPSHOT'
id 'com.palantir.git-version' version '0.12.0-rc2'
2018-08-23 19:06:08 +02:00
}
2019-01-05 22:30:41 +01:00
group 'com.github.creeper123123321.viafabric'
version gitVersion()
2019-01-05 22:30:41 +01:00
archivesBaseName = 'ViaFabric'
2018-07-06 04:49:19 +02:00
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
2018-12-21 20:40:07 +01:00
mavenLocal()
2018-07-06 04:49:19 +02:00
mavenCentral()
2019-01-05 22:30:41 +01:00
jcenter()
2018-08-22 19:23:09 +02:00
maven { url 'https://repo.viaversion.com/' }
2018-08-21 20:14:42 +02:00
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
2019-01-05 22:30:41 +01:00
maven { url 'https://maven.fabricmc.net/' }
2019-02-08 20:46:37 +01:00
maven { url "http://server.bbkr.space:8081/artifactory/libs-snapshot" }
2018-07-06 04:49:19 +02:00
}
2019-01-06 20:11:08 +01:00
processResources {
filter ReplaceTokens, tokens: [
"version": project.property("version")
]
}
2018-07-06 04:49:19 +02:00
dependencies {
compile "us.myles:viaversion:2.0.0-19w06a"
compile "de.gerrygames:viarewind-all:1.4.0"
2019-01-05 22:30:41 +01:00
minecraft "com.mojang:minecraft:19w06a"
mappings "net.fabricmc:yarn:19w06a.3"
2019-02-08 20:46:37 +01:00
modCompile "net.fabricmc:fabric-loader:0.3.5.106"
modCompile "net.fabricmc:fabric:0.2.0.89"
2019-02-08 20:46:37 +01:00
modCompile "io.github.cottonmc:client-commands:0.1.0+19w05a-SNAPSHOT"
2018-07-06 04:49:19 +02:00
}
minecraft {
}
2019-01-05 22:30:41 +01:00
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this task, sources will not be generated.
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}