build: Nukkit-MOT vgit-9ebdd88
This commit is contained in:
@@ -99,4 +99,4 @@ socket-port: 2304
|
|||||||
| Версия протокола | 422 (1.16.200) |
|
| Версия протокола | 422 (1.16.200) |
|
||||||
| Коммит Apparatus | `73194cfd` |
|
| Коммит Apparatus | `73194cfd` |
|
||||||
| Коммит Instant Referrer | `a264591` |
|
| Коммит Instant Referrer | `a264591` |
|
||||||
| Коммит Nukkit-MOT | `005c5feed02df4869d998553cac5e5070e1f4ca0` |
|
| Коммит Nukkit-MOT | `9ebdd88` |
|
||||||
|
|||||||
+29
-20
@@ -1,30 +1,40 @@
|
|||||||
apply plugin: 'java'
|
|
||||||
apply plugin: 'application'
|
apply plugin: 'application'
|
||||||
|
|
||||||
group 'com.reider745'
|
group 'ZoteCoreLoader'
|
||||||
version 'SNAPSHOT'
|
version 'SNAPSHOT'
|
||||||
mainClassName = 'com.reider745.Main'
|
|
||||||
|
application {
|
||||||
|
mainClass = 'com.reider745.Main'
|
||||||
|
applicationDefaultJvmArgs = ['--add-opens', 'java.base/jdk.internal.loader=ALL-UNNAMED']
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
maven {
|
||||||
|
url 'https://repo.lanink.cn/repository/maven-public/'
|
||||||
|
}
|
||||||
|
maven {
|
||||||
|
url 'https://repo.opencollab.dev/maven-releases/'
|
||||||
|
}
|
||||||
|
maven {
|
||||||
|
url 'https://repo.opencollab.dev/maven-snapshots/'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// https://mvnrepository.com/artifact/com.google.code.gson/gson
|
// https://repo.lanink.cn/#browse/browse:maven-public:cn/nukkit/Nukkit/MOT-SNAPSHOT
|
||||||
|
implementation (group: 'cn.nukkit', name: 'Nukkit', version: 'MOT-20240213.074103-139') {
|
||||||
|
exclude group: 'org.apache.logging.log4j', module: 'log4j-slf4j-impl'
|
||||||
|
}
|
||||||
|
// https://central.sonatype.com/artifact/com.google.code.gson/gson/versions
|
||||||
implementation group: 'com.google.code.gson', name: 'gson', version: '2.7'
|
implementation group: 'com.google.code.gson', name: 'gson', version: '2.7'
|
||||||
|
// https://central.sonatype.com/artifact/org.mozilla/rhino/versions
|
||||||
// https://mvnrepository.com/artifact/org.mozilla/rhino
|
|
||||||
implementation group: 'org.mozilla', name: 'rhino', version: '1.7.8'
|
implementation group: 'org.mozilla', name: 'rhino', version: '1.7.8'
|
||||||
|
// https://central.sonatype.com/artifact/org.json/json/versions
|
||||||
|
implementation group: 'org.json', name: 'json', version: '20231013'
|
||||||
|
|
||||||
implementation fileTree (dir: 'iclibs', include: ['*.jar'])
|
implementation fileTree (dir: 'iclibs', include: '*.jar')
|
||||||
implementation fileTree (dir: 'iclibs/dex2jar', include: ['*.jar'])
|
implementation fileTree (dir: 'iclibs/dex2jar', include: '*.jar')
|
||||||
implementation 'org.json:json:20231013'
|
|
||||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
|
|
||||||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
|
|
||||||
}
|
|
||||||
|
|
||||||
test {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def targetJavaVersion = 17
|
def targetJavaVersion = 17
|
||||||
@@ -38,17 +48,16 @@ java {
|
|||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
duplicatesStrategy = 'exclude'
|
duplicatesStrategy 'exclude'
|
||||||
manifest {
|
manifest {
|
||||||
attributes 'Main-Class': mainClassName
|
attributes 'Main-Class': application.mainClass
|
||||||
}
|
}
|
||||||
from configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
from configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
||||||
}
|
}
|
||||||
|
|
||||||
run {
|
run {
|
||||||
workingDir = 'target'
|
workingDir 'target'
|
||||||
standardInput = System.in
|
standardInput System.in
|
||||||
jvmArgs += ['--add-opens', 'java.base/jdk.internal.loader=ALL-UNNAMED']
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task rebuildAndroidStubs(type: JavaExec, dependsOn: classes) {
|
task rebuildAndroidStubs(type: JavaExec, dependsOn: classes) {
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
org.gradle.jvmargs=-noverify
|
org.gradle.jvmargs=-noverify
|
||||||
|
org.gradle.warning.mode=none
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user