Skip to content

Commit

Permalink
rewrite/update
Browse files Browse the repository at this point in the history
  • Loading branch information
asbyth committed Mar 22, 2020
1 parent 1353319 commit 89915d2
Show file tree
Hide file tree
Showing 11 changed files with 787 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# eclipse
eclipse
bin
*.launch
.settings
.metadata
.classpath
.project

# idea
out
classes
*.ipr
*.iws
*.iml
.idea

# gradle
build
.gradle

#Netbeans
.nb-gradle
.nb-gradle-properties

# other
run
.DS_Store
Thumbs.db
77 changes: 77 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "https://files.minecraftforge.net/maven"
}

flatDir dirs: 'libs'
}
dependencies {
classpath "net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT"
}
}

apply plugin: "net.minecraftforge.gradle.forge"

version = modVersion
group = modGroup
archivesBaseName = modBaseName

sourceCompatibility = targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'

minecraft {
version = project.forgeVersion
runDir = "run"

// the mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD snapshot are built nightly.
// stable_# stables are built at the discretion of the MCP team.
// Use non-default mappings at your own risk. they may not always work.
// simply re-run your setup task after changing the mappings to update your workspace.
mappings = project.mcpVersion
makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
}

dependencies {
provided files("libs/modcore.jar")
}

task moveResources {
doLast {
ant.move file: "${buildDir}/resources/main",
todir: "${buildDir}/classes/java"
}
}

moveResources.dependsOn processResources
classes.dependsOn moveResources

processResources {
// this will ensure that this task is redone when the versions change.
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version

// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include "mcmod.info"

// replace version and mcversion
expand "version": project.version, "mcversion": project.minecraft.version
}

// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude "mcmod.info"
}
}

jar {
manifest {
attributes "FMLCorePlugin": "club.sk1er.uhcstars.tweaker.UHCStarsTweaker",
"ModSide": "CLIENT",
"FMLCorePluginContainsFMLMod": "Yes, yes it does"
}
}
11 changes: 11 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
modGroup=club.sk1er
modVersion=2.0
modBaseName=UHC Stars
forgeVersion=1.8.9-11.15.1.2318-1.8.9
mcpVersion=stable_22

org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.configureoncommand=true
org.gradle.parallel.threads=4
org.gradle.jvmargs=-Xmx6G
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Sat Jan 11 10:31:12 EST 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Binary file added libs/modcore.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion sk1er_mod.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod_id=Sk1er-UHCstars
display_name=Hypixel Stars Mod
not_complete=false
not_complete=false
hide=false
Loading

0 comments on commit 89915d2

Please sign in to comment.