1 Star 1 Fork 0

cdc12345/MCreator-Chinese

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 5.42 KB
一键复制 编辑 原始数据 按行查看 历史
cdc12345 提交于 2022-08-16 08:58 . 1.添加了mcrc的标志
plugins {
id "java"
id "idea"
id "de.undercouch.download" version "5.1.0"
id 'edu.sc.seis.launch4j' version '2.5.3'
id 'org.jetbrains.gradle.plugin.idea-ext' version '1.1.6'
id 'org.openjfx.javafxplugin' version '0.0.13'
}
repositories {
flatDir { dirs 'lib' }
mavenLocal()
maven {
url 'https://maven.aliyun.com/repository/public/'
}
maven {
url 'https://maven.aliyun.com/repository/spring/'
}
maven {
url 'https://maven.aliyun.com/repository/gradle-plugin'
}
maven { url "https://repo.gradle.org/gradle/libs-releases-local/" }
maven { url "https://maven.scijava.org/content/repositories/public/" }
mavenCentral()
}
project.ext.mcreatorconf = new Properties()
file('src/main/resources/mcrc.conf').withInputStream { project.mcreatorconf.load(it) }
group = 'net.mcreator'
version = project.mcreatorconf.getProperty('mcreator')
project.ext.builddate = new Date().format('wwuHH')
javadoc.source = sourceSets.main.allJava
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
sourceCompatibility = 17
targetCompatibility = 17
// workaround for IDEA-265203
System.setProperty("user.dir", projectDir.toString())
idea {
module {
inheritOutputDirs = true
excludeDirs = [file(".gradle"), file(".idea"), file(".github"), file("build"),
file("gradle"), file("jdk"), file("license"), file("logs")] as Set<File>
}
}
configurations {
testImplementation.extendsFrom compileOnly
provided
compileOnly.extendsFrom provided
runtimeOnly.extendsFrom provided
export.extendsFrom implementation
export.canBeResolved = true
win64
}
dependencies {
// from lib folder
implementation fileTree(dir: 'lib', include: ['*.jar'])
// from maven
implementation group: 'commons-io', name: 'commons-io', version: '2.11.0'
implementation group: 'foxtrot', name: 'foxtrot-core', version: '4.0'
implementation group: 'org.freemarker', name: 'freemarker', version: '2.3.31'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.9.1'
implementation group: 'com.github.sps.junidecode', name: 'junidecode', version: '0.3'
implementation group: 'org.jboss.forge.roaster', name: 'roaster-api', version: '2.26.0.Final'
implementation group: 'org.jboss.forge.roaster', name: 'roaster-jdt', version: '2.26.0.Final'
implementation group: 'com.esotericsoftware.yamlbeans', name: 'yamlbeans', version: '1.15'
implementation group: 'org.reflections', name: 'reflections', version: '0.10.2'
implementation group: 'com.google.guava', name: 'guava', version: '31.1-jre'
implementation group: 'de.javagl', name: 'obj', version: '0.3.0'
implementation group: 'com.univocity', name: 'univocity-parsers', version: '2.9.1'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.18.0'
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.9'
implementation group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: '6.2.0.202206071550-r'
implementation group: 'org.slf4j', name: 'slf4j-nop', version: '1.7.36'
implementation group: 'net.java.balloontip', name: 'balloontip', version: '1.2.4.1'
implementation group: 'com.atlassian.commonmark', name: 'commonmark', version: '0.17.0'
implementation group: 'com.atlassian.commonmark', name: 'commonmark-ext-autolink', version: '0.17.0'
implementation group: 'com.atlassian.commonmark', name: 'commonmark-ext-gfm-tables', version: '0.17.0'
implementation group: 'club.minnced', name: 'java-discord-rpc', version: '2.0.2'
implementation group: 'com.fifesoft', name: 'rsyntaxtextarea', version: '3.2.0'
implementation group: 'com.fifesoft', name: 'autocomplete', version: '3.2.0'
implementation(group: 'com.fifesoft', name: 'languagesupport', version: '3.1.4') {
dep -> dep.exclude group: 'org.mozilla', module: 'rhino'
}
// test dependencies
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.9.0'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.9.0'
// JFX natives
win64 group: 'org.openjfx', name: 'javafx-base', version: '18.0.2', classifier: 'win'
win64 group: 'org.openjfx', name: 'javafx-controls', version: '18.0.2', classifier: 'win'
win64 group: 'org.openjfx', name: 'javafx-graphics', version: '18.0.2', classifier: 'win'
win64 group: 'org.openjfx', name: 'javafx-media', version: '18.0.2', classifier: 'win'
win64 group: 'org.openjfx', name: 'javafx-web', version: '18.0.2', classifier: 'win'
win64 group: 'org.openjfx', name: 'javafx-swing', version: '18.0.2', classifier: 'win'
}
javafx {
version = "18.0.2"
modules = ['javafx.web', 'javafx.swing']
configuration = 'provided' // we provide natives during deployment or with SDK
}
test {
useJUnitPlatform()
testLogging.showStandardStreams = true
testLogging.exceptionFormat = 'full'
maxHeapSize = "1024m"
jvmArgs '--add-opens', 'java.base/java.lang=ALL-UNNAMED'
}
javadoc {
source = sourceSets.main.allJava
classpath = configurations.runtimeClasspath
}
task runMCreator(type: JavaExec, dependsOn: jar) {
jvmArgs '--add-opens', 'java.base/java.lang=ALL-UNNAMED'
classpath += sourceSets.main.runtimeClasspath
main = "net.mcreator.Launcher"
}
apply from: 'platform/setup.gradle'
apply from: 'platform/export.gradle'
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/cdc12345/MCreator-Chinese.git
git@gitee.com:cdc12345/MCreator-Chinese.git
cdc12345
MCreator-Chinese
MCreator-Chinese
master

搜索帮助