Skip to content

Instantly share code, notes, and snippets.

@AlBaker
Created May 18, 2014 02:51
Show Gist options
  • Save AlBaker/918a244704940f5b1b9f to your computer and use it in GitHub Desktop.
Save AlBaker/918a244704940f5b1b9f to your computer and use it in GitHub Desktop.
buildscript {
repositories {
maven { url "http://repo.spring.io/libs-snapshot" }
mavenLocal()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.0.2.RELEASE")
}
}
apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'application'
apply plugin: 'spring-boot'
// ETL or Client
mainClassName = "your.mainClass"
repositories {
mavenLocal()
mavenCentral()
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
}
dependencies {
// your dependencies
compile("org.springframework.boot:spring-boot-starter")
testCompile("org.springframework.boot:spring-boot-starter-test")
}
jar {
manifest {
attributes 'Implementation-Title': 'your-title',
'Implementation-Version': version,
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version'),
'Main-Class': mainClassName
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment