mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-27 07:26:48 +01:00
Fancy buildscript and 0.0.2
This commit is contained in:
parent
69cf9e9b21
commit
1295b278a2
3 changed files with 33 additions and 23 deletions
42
build.gradle
42
build.gradle
|
@ -18,8 +18,10 @@ plugins {
|
||||||
apply plugin: 'net.minecraftforge.gradle'
|
apply plugin: 'net.minecraftforge.gradle'
|
||||||
apply plugin: 'org.spongepowered.mixin'
|
apply plugin: 'org.spongepowered.mixin'
|
||||||
|
|
||||||
|
boolean dev = System.getenv('RELEASE') == null || System.getenv('RELEASE').equals('false');
|
||||||
|
|
||||||
group = 'jozufozu'
|
group = 'jozufozu'
|
||||||
version = "${mod_version}"
|
version = "${mc_update_version}-${mod_version}"
|
||||||
archivesBaseName = 'flywheel'
|
archivesBaseName = 'flywheel'
|
||||||
|
|
||||||
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
|
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
|
||||||
|
@ -115,29 +117,8 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
|
|
||||||
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
|
|
||||||
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
|
|
||||||
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
|
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
|
||||||
|
|
||||||
// You may put jars on which you depend on in ./libs or you may define them like so..
|
|
||||||
// compile "some.group:artifact:version:classifier"
|
|
||||||
// compile "some.group:artifact:version"
|
|
||||||
|
|
||||||
// Real examples
|
|
||||||
// compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
|
|
||||||
// compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
|
|
||||||
|
|
||||||
// The 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime.
|
|
||||||
// provided 'com.mod-buildcraft:buildcraft:6.0.8:dev'
|
|
||||||
|
|
||||||
// These dependencies get remapped to your current MCP mappings
|
|
||||||
// deobf 'com.mod-buildcraft:buildcraft:6.0.8:dev'
|
|
||||||
|
|
||||||
// For more info...
|
|
||||||
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
|
|
||||||
// http://www.gradle.org/docs/current/userguide/dependency_management.html
|
|
||||||
|
|
||||||
annotationProcessor 'org.spongepowered:mixin:0.8:processor'
|
annotationProcessor 'org.spongepowered:mixin:0.8:processor'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,3 +139,20 @@ jar {
|
||||||
}
|
}
|
||||||
|
|
||||||
jar.finalizedBy('reobfJar')
|
jar.finalizedBy('reobfJar')
|
||||||
|
|
||||||
|
tasks.curseforge.enabled = !dev && project.hasProperty('jozu_curseforge_key')
|
||||||
|
|
||||||
|
curseforge {
|
||||||
|
if (project.hasProperty('jozu_curseforge_key')) {
|
||||||
|
apiKey = project.jozu_curseforge_key
|
||||||
|
}
|
||||||
|
|
||||||
|
project {
|
||||||
|
id = project.projectId
|
||||||
|
changelog = file('changelog.txt')
|
||||||
|
releaseType = project.curse_type
|
||||||
|
mainArtifact(jar) {
|
||||||
|
displayName = "${archivesBaseName}-${version}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
9
changelog.txt
Normal file
9
changelog.txt
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
0.0.2:
|
||||||
|
New
|
||||||
|
- Added /flywheel backend command to replace /create experimentalRendering
|
||||||
|
- Added /flywheel normalOverlay command
|
||||||
|
- Added basic config
|
||||||
|
- New logo (thanks, bumble_dani!)
|
||||||
|
|
||||||
|
0.0.1:
|
||||||
|
- Initial release
|
|
@ -2,7 +2,8 @@ org.gradle.jvmargs=-Xmx3G
|
||||||
org.gradle.daemon=false
|
org.gradle.daemon=false
|
||||||
|
|
||||||
# mod version info
|
# mod version info
|
||||||
mod_version=0.0.1
|
mod_version=0.0.2
|
||||||
|
mc_update_version=1.16
|
||||||
minecraft_version=1.16.5
|
minecraft_version=1.16.5
|
||||||
forge_version=36.0.42
|
forge_version=36.0.42
|
||||||
mcp_mappings=20200920-mixed-1.16.3
|
mcp_mappings=20200920-mixed-1.16.3
|
||||||
|
@ -16,4 +17,6 @@ jei_version=7.6.1.71
|
||||||
# curse_type=beta
|
# curse_type=beta
|
||||||
|
|
||||||
# github information
|
# github information
|
||||||
|
projectId=486392
|
||||||
|
curse_type=beta
|
||||||
github_project=Jozufozu/Flywheel
|
github_project=Jozufozu/Flywheel
|
||||||
|
|
Loading…
Reference in a new issue