Last active
March 19, 2018 09:08
-
-
Save davidB/4c520c9dc1b3fddcf0ec to your computer and use it in GitHub Desktop.
a set of gradle snippet that are used via "apply from: 'http://....' "
This file contains hidden or 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
task copyDeps { | |
description 'copy runtime + testRuntime dependencies into lib/ dir to allow other tools (jme3-SDK, eclipse apt-processor) to use libs' | |
copy { | |
from configurations.runtime | |
into 'lib/main' | |
} | |
copy { | |
from (configurations.testRuntime - configurations.runtime) | |
into 'lib/test' | |
} | |
} |
This file contains hidden or 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
buildscript { | |
repositories { | |
mavenLocal() | |
jcenter() | |
} | |
dependencies { | |
classpath "net.alchim31.gradle:gradle-getdown-plugin:0.4.1" | |
} | |
} | |
apply plugin: 'net.alchim31.getdown' | |
getdown { | |
urlbase = "http://alchim31.net/download/${project.name}" | |
checklatest = false | |
mainClassName = project.mainClassName | |
jvmArgs = project.applicationDefaultJvmArgs | |
tmplGetdownTxt = tmplGetdownTxt + "\nallow_offline = true" | |
} |
This file contains hidden or 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
println "configuring $project" | |
task hello << { | |
println 'hello from other script' | |
} |
This file contains hidden or 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
//buildscript { | |
// repositories { | |
// jcenter() | |
// } | |
// dependencies { | |
// classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:1.12.+' | |
// } | |
//} | |
apply plugin: 'java' | |
apply plugin: 'provided-base' | |
sourceCompatibility = JavaVersion.VERSION_1_8 | |
targetCompatibility = JavaVersion.VERSION_1_8 | |
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' | |
repositories { | |
mavenLocal() | |
jcenter() | |
maven { url "http://updates.jmonkeyengine.org/maven/"} | |
maven { url "http://dl.bintray.com/jmonkeyengine/contrib" } | |
} | |
sourceSets { | |
main { | |
resources { | |
srcDirs = ["$projectDir/src/main/resources", "$projectDir/src/main/assets", "$projectDir/assets"] | |
exclude "**/*.blend*" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment