-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
38 lines (33 loc) · 862 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
plugins {
id 'java'
id 'com.github.michaelruocco.embedded-mysql-plugin' version '2.1.11'
}
// In this section you declare where to find the dependencies of your project
repositories {
jcenter()
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = '1.0'
// In this section you declare the dependencies for your production and test code
dependencies {
testCompile "junit:junit:4.12"
}
embeddedMysql {
url = 'jdbc:mysql://localhost:3306/testdb'
username = 'testuser'
password = 'testpw'
version = 'v5_7_latest'
}
jar {
manifest{
attributes 'Main-Class': 'hello.HelloWorld',
'Implementation-Title': 'Java 8 Tutorial',
'Implementation-Version': archiveVersion
}
}
task run(type: JavaExec){
classpath sourceSets.main.runtimeClasspath
main = "hello.HelloWorld"
}