Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into main
  • Loading branch information
TheLivan committed Apr 11, 2021
2 parents a0eb80a + 7868f1c commit 306bd2a
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ buildscript {
}
apply plugin: 'net.minecraftforge.gradle.forge'

version = "1.0"
group = "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "modid"
version = "2.1"
group = "com.thelivan.friends"
archivesBaseName = "FriendsMOD"

sourceCompatibility = targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
sourceCompatibility = targetCompatibility = '1.8'
compileJava {
sourceCompatibility = targetCompatibility = '1.8'
}
Expand All @@ -24,24 +24,18 @@ minecraft {
runDir = 'run'
}

dependencies {

}
dependencies { }

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 except the mcmod.info

from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
Expand Down

0 comments on commit 306bd2a

Please sign in to comment.