mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 13:05:52 +08:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7c644e4d63 | ||
|
|
a7537e9d98 |
No files matched your search
Generated
+2
-1
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GradleMigrationSettings" migrationVersion="1" />
|
||||
<component name="GradleSettings">
|
||||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
@@ -8,7 +9,7 @@
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
<option value="$PROJECT_DIR$/Loader" />
|
||||
<option value="$PROJECT_DIR$/Minecraft1.8.8" />
|
||||
<option value="$PROJECT_DIR$/OrangeX" />
|
||||
</set>
|
||||
</option>
|
||||
<option name="resolveExternalAnnotations" value="true" />
|
||||
|
||||
Generated
+3
@@ -9,6 +9,9 @@
|
||||
<option name="description" value="" />
|
||||
</component>
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="FrameworkDetectionExcludesConfiguration">
|
||||
<file type="web" url="file://$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
|
||||
Generated
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -16,4 +16,9 @@ dependencies {
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
tasks.named('shadowJar') {
|
||||
destinationDirectory = rootProject.layout.projectDirectory.dir('out/tmp')
|
||||
archiveFileName = "${project.name}.jar"
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id("com.gradleup.shadow") version "8.3.11"
|
||||
}
|
||||
|
||||
group = 'cn.xiaozhou233.orangex'
|
||||
version = 'unspecified'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// Source: https://mvnrepository.com/artifact/org.projectlombok/lombok
|
||||
compileOnly 'org.projectlombok:lombok:1.18.48'
|
||||
annotationProcessor 'org.projectlombok:lombok:1.18.48'
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
tasks.named('shadowJar') {
|
||||
destinationDirectory = rootProject.layout.projectDirectory.dir('out/tmp')
|
||||
archiveFileName = "${project.name}.jar"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package cn.xiaozhou233.orangex;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
public class OrangeX {
|
||||
@Getter
|
||||
private static final OrangeX instance = new OrangeX();
|
||||
|
||||
public OrangeX() {
|
||||
System.out.println("OrangeX <init> start!");
|
||||
}
|
||||
}
|
||||
@@ -2,3 +2,25 @@ plugins {
|
||||
id 'base'
|
||||
}
|
||||
|
||||
def outputDir = layout.projectDirectory.dir('out/tmp')
|
||||
|
||||
tasks.register('cleanOut') {
|
||||
group = 'build'
|
||||
description = 'Deletes the shaded jar output directory (out/tmp)'
|
||||
doLast {
|
||||
delete outputDir
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register('packageAll') {
|
||||
group = 'build'
|
||||
description = 'Builds the shaded Loader and OrangeX jars into out/tmp'
|
||||
dependsOn cleanOut
|
||||
dependsOn ':Loader:shadowJar', ':OrangeX:shadowJar'
|
||||
}
|
||||
|
||||
subprojects {
|
||||
tasks.matching { it.name == 'shadowJar' }.configureEach {
|
||||
mustRunAfter rootProject.tasks.named('cleanOut')
|
||||
}
|
||||
}
|
||||
@@ -1,2 +1,4 @@
|
||||
rootProject.name = 'OrangeX-Client'
|
||||
include 'Loader'
|
||||
include 'OrangeX'
|
||||
|
||||
Reference in new issue
Block a user