This repository has been archived by the owner on Mar 5, 2023. It is now read-only.
generated from LabyMod/1.16.5-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6d26588
Showing
15 changed files
with
692 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Gradle build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew downloadAPI build | ||
- name: Upload jar | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: Artifacts | ||
path: build/libs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
### Java template | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
|
||
### JetBrains template | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm | ||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | ||
|
||
# User-specific stuff | ||
.idea/**/workspace.xml | ||
.idea/**/tasks.xml | ||
.idea/**/usage.statistics.xml | ||
.idea/**/dictionaries | ||
.idea/**/shelf | ||
.idea/**/misc.xml | ||
.idea/**/discord.xml | ||
.idea/**/encodings.xml | ||
.idea/codeStyles/ | ||
.idea/sonarlint/ | ||
|
||
# Generated files | ||
.idea/**/contentModel.xml | ||
.idea/**/jarRepositories.xml | ||
.idea/**/uiDesigner.xml | ||
.idea/**/inspectionProfiles | ||
.idea/**/.name | ||
.idea/**/vcs.xml | ||
.idea/**/compiler.xml | ||
run/** | ||
|
||
# Sensitive or high-churn files | ||
.idea/**/dataSources/ | ||
.idea/**/dataSources.ids | ||
.idea/**/dataSources.local.xml | ||
.idea/**/sqlDataSources.xml | ||
.idea/**/dynamic.xml | ||
.idea/**/dbnavigator.xml | ||
.idea/kotlinScripting.xml | ||
|
||
# Gradle | ||
.idea/**/gradle.xml | ||
.idea/**/libraries | ||
|
||
# Gradle and Maven with auto-import | ||
# When using Gradle or Maven with auto-import, you should exclude module files, | ||
# since they will be recreated, and may cause churn. Uncomment if using | ||
# auto-import. | ||
# .idea/artifacts | ||
# .idea/compiler.xml | ||
.idea/modules.xml | ||
.idea/*.iml | ||
# .idea/modules | ||
# *.iml | ||
# *.ipr | ||
|
||
# CMake | ||
cmake-build-*/ | ||
|
||
# Mongo Explorer plugin | ||
.idea/**/mongoSettings.xml | ||
|
||
# File-based project format | ||
*.iws | ||
|
||
# IntelliJ | ||
out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Cursive Clojure plugin | ||
.idea/replstate.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
||
# Editor-based Rest Client | ||
.idea/httpRequests | ||
|
||
# Android studio 3.1+ serialized cache file | ||
.idea/caches/build_file_checksums.ser | ||
|
||
### Gradle template | ||
.gradle | ||
/**/build/ | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | ||
!gradle-wrapper.jar | ||
|
||
# Cache of project | ||
.gradletasknamecache | ||
|
||
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 | ||
# gradle/wrapper/gradle-wrapper.properties | ||
|
||
.idea/modules/ | ||
src/test/ | ||
**/src/main/generated/* | ||
|
||
.idea/intellij-javadocs-4.0.1.xml | ||
run/ | ||
libs/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
buildscript { | ||
repositories { | ||
maven { url = 'https://files.minecraftforge.net/maven' } | ||
maven { url = 'https://repo.spongepowered.org/maven' } | ||
maven { | ||
name = 'impactdevelopment-repo' | ||
url = 'https://impactdevelopment.github.io/maven/' | ||
} | ||
jcenter() | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath group: 'com.github.ImpactDevelopment', name: 'ForgeGradle', version: '3.0.115' | ||
classpath group: 'com.github.ImpactDevelopment', name: 'MixinGradle', version: '0.6.2' | ||
} | ||
} | ||
|
||
plugins { | ||
id 'de.undercouch.download' version '4.0.0' | ||
} | ||
apply plugin: 'net.minecraftforge.gradle' | ||
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. | ||
apply plugin: 'eclipse' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'org.spongepowered.mixin' | ||
|
||
version = '1.0.0' | ||
group = 'com.example' // http://maven.apache.org/guides/mini/guide-naming-conventions.html | ||
archivesBaseName = 'Example Addon' | ||
|
||
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly. | ||
|
||
def mcpVersion = [channel: 'snapshot', version: '20201028-1.16.3'] | ||
|
||
mixin { | ||
defaultObfuscationEnv searge | ||
add sourceSets.main, "example.refmap.json" | ||
} | ||
|
||
minecraft { | ||
mappings mcpVersion | ||
|
||
if (getProject().hasProperty("forge")) { | ||
reobfMappings 'searge' | ||
} else { | ||
reobfMappings 'notch' | ||
} | ||
|
||
runs { | ||
client { | ||
workingDirectory project.file('run') | ||
|
||
main "launch.AddonLauncher" | ||
|
||
environment 'assetIndex', '{asset_index}' | ||
environment 'assetDirectory', downloadAssets.output | ||
environment 'nativesDirectory', extractNatives.output | ||
|
||
environment 'tweakClass', 'net.labymod.vanilla.LabyModTweaker' | ||
|
||
jvmArg('-DdebugMode=true') | ||
jvmArg('-Daddonresources=addon.json') | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { | ||
name = "spongepowered" | ||
url = "https://repo.spongepowered.org/maven" | ||
} | ||
maven { | ||
name = 'impactdevelopment-repo' | ||
url = 'https://impactdevelopment.github.io/maven/' | ||
} | ||
mavenLocal() | ||
} | ||
|
||
|
||
dependencies { | ||
annotationProcessor("org.spongepowered:mixin:0.8.2:processor") | ||
|
||
minecraft 'com.github.ImpactDevelopment:Vanilla:1.16.5' | ||
compile(files('libs/lm_api_mc1.16.5.jar')) | ||
|
||
compile("org.ow2.asm:asm-analysis:6.2") { transitive = false } | ||
compile("org.ow2.asm:asm-util:6.2") { transitive = false } | ||
compile("org.ow2.asm:asm-commons:6.2") { transitive = false } | ||
compile("org.spongepowered:mixin:0.8.2") { transitive = false } | ||
compile("net.minecraft:launchwrapper:1.12") { transitive = false } | ||
} | ||
|
||
jar { | ||
// Excludes the start file | ||
exclude("**/launch") | ||
} | ||
|
||
task downloadAPI(type: Download) { | ||
group("labymod") | ||
|
||
File libraryDirectory = new File("libs/") | ||
|
||
if (!libraryDirectory.exists()) { | ||
libraryDirectory.mkdirs() | ||
} | ||
|
||
src "https://dl.labymod.net/latest/api/files/lm_api_mc1.16.5.jar" | ||
dest 'libs/' | ||
} | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.