Skip to content

Commit

Permalink
Migrated to gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
joserobjr committed Aug 4, 2016
1 parent 2f91cca commit 475c5a7
Show file tree
Hide file tree
Showing 21 changed files with 151 additions and 498 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ out
dependency-reduced-pom.xml
build
.gradle
externalLibs
externalLibs
35 changes: 0 additions & 35 deletions Bukkit/pom.xml

This file was deleted.

29 changes: 0 additions & 29 deletions Core/pom.xml

This file was deleted.

76 changes: 0 additions & 76 deletions Forge/bridge/pom.xml

This file was deleted.

48 changes: 16 additions & 32 deletions Forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,48 +17,26 @@ buildscript {

apply plugin: 'forge'

version = "1.0-SNAPSHOT"
group= "br.com.gamemods.minecity"
//noinspection GroovyUnusedAssignment
archivesBaseName = "MineCityForge"
project(':Forge') {
archivesBaseName = "MineCity"

//noinspection GroovyUnusedAssignment
sourceCompatibility = 1.8
//noinspection GroovyUnusedAssignment
targetCompatibility = 1.8
sourceCompatibility = 1.8
targetCompatibility = 1.8
}

minecraft {
version = "1.7.10-10.13.4.1566-1.7.10"
runDir = "eclipse"
}

repositories {
mavenLocal()
configurations {
shade
compile.extendsFrom shade
}

dependencies {
compile files('../Core/target/classes')
compile "org.jetbrains:annotations:13.0"

testCompile "junit:junit:4.12"
testCompile "org.powermock:powermock-module-junit4:1.6.5"
testCompile "org.powermock:powermock-api-mockito:1.6.5"

//compile "mysql:mysql-connector-java:5.1.32"

// 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

// for more info...
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
// http://www.gradle.org/docs/current/userguide/dependency_management.html

shade project(':Core')
shade project(':Bukkit')
}

jar {
Expand All @@ -68,6 +46,12 @@ jar {
'FMLCorePluginContainsFMLMod': 'true'
)
}

configurations.shade.each { dep ->
from(project.zipTree(dep)){
include 'br/**', '*.yml', '*.info'
}
}
}

processResources
Expand Down
1 change: 0 additions & 1 deletion Forge/eclipse/.gitignore

This file was deleted.

Empty file.
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions Forge/module.properties

This file was deleted.

21 changes: 0 additions & 21 deletions UnitTest/pom.xml

This file was deleted.

Loading

0 comments on commit 475c5a7

Please sign in to comment.