mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
31 lines
519 B
Groovy
31 lines
519 B
Groovy
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'application'
|
|
|
|
mainClassName = 'hello.HelloWorld'
|
|
|
|
// tag::repositories[]
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
// end::repositories[]
|
|
|
|
// tag::jar[]
|
|
jar {
|
|
baseName = 'example-java-app-gradle'
|
|
version = '0.1.0'
|
|
}
|
|
// end::jar[]
|
|
|
|
// tag::dependencies[]
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
dependencies {
|
|
compile "joda-time:joda-time:2.2"
|
|
testCompile "junit:junit:4.12"
|
|
}
|
|
// end::dependencies[]
|
|
|
|
// tag::wrapper[]
|
|
// end::wrapper[] |