-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (50 loc) · 1.94 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
classpath group: 'org.hibernate.javax.persistence', name: 'hibernate-jpa-2.0-api', version: '1.0.1.Final'
classpath group: 'org.hibernate', name: 'hibernate-core', version: '5.3.7.Final'
classpath group: 'org.hibernate', name: 'hibernate-annotations', version: '3.5.6-Final'
classpath group: 'org.hibernate', name: 'hibernate-entitymanager', version: '5.3.7.Final'
}
}
plugins {
id 'java'
}
apply plugin: 'com.github.johnrengelman.shadow'
group 'bg.clearcode'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
// compile 'org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1.Final'
compile group: 'org.hibernate.javax.persistence', name: 'hibernate-jpa-2.0-api', version: '1.0.1.Final'
compile group: 'org.hibernate', name: 'hibernate-core', version: '5.3.7.Final'
compile group: 'org.hibernate', name: 'hibernate-annotations', version: '3.5.6-Final'
compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '5.3.7.Final'
compile group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
//testCompile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.25'
// driver
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.13'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
task myRun(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bg.clearcode.javacoude181022.jpa.Runner"
//args "arg1", "arg2"
}
jar {
manifest {
attributes(
'Main-Class': 'bg.clearcode.javacoude181022.jpa.Runner'
)
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}