ViaFabric/build.gradle

51 lines
1.2 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/' }
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 {
2019-01-25 17:08:10 +01:00
compile "us.myles:viaversion:2.0.0-19w04a"
2019-01-05 22:30:41 +01:00
2019-01-24 20:16:47 +01:00
minecraft "com.mojang:minecraft:19w04a"
mappings "net.fabricmc:yarn:19w04a.1"
modCompile "net.fabricmc:fabric-loader:0.3.3.101"
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
}