Last active
August 29, 2015 14:28
-
-
Save gallardo/75f54208928271970fe9 to your computer and use it in GitHub Desktop.
Test resource for netbeans-gradle-project issues #229 and #331
This file contains 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
// Explicit imports to workaround https://github.com/kelemen/netbeans-gradle-project/issues/231 | |
// (NB does not allow to specify implicit imports) | |
import org.apache.tools.ant.filters.ReplaceTokens | |
import groovy.util.XmlParser | |
import org.gradle.api.artifacts.maven.MavenDeployment | |
import com.helger.datetime.CPDT | |
// No need to declare the maven plugin! | |
// apply plugin: 'maven' | |
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.helger:ph-datetime:4.2.0' | |
} | |
} | |
// Silly tasks to assert that org.apache.tools.ant.filters.ReplaceTokens | |
// is resolved (#229) | |
task testQualifiedImport <<{ | |
println ReplaceTokens.class | |
} | |
// Silly task to assert that groovy.util.XmlParser is resolved (#229) | |
task testGroovyDeps <<{ | |
println XmlParser.class | |
} | |
// Silly tasks to assert that org.gradle.api.artifacts.maven.MavenDeployment | |
// is resolved if using maven plugin (#231) | |
task testMavenPluginDeps <<{ | |
println MavenDeployer.class | |
} | |
// Silly tasks to assert that com.helger.datetime.CPDT (declared as buildscript | |
// dependency) is resolved (#231) | |
task testBuildscriptDeps <<{ | |
println CPDT.class | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment