build.gradle
940 Bytes
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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* user guide available at https://docs.gradle.org/4.5.1/userguide/java_library_plugin.html
*/
plugins {
// Apply the java-library plugin to add support for Java Library
id 'java'
id 'eclipse'
id 'application'
}
jar.enabled = true
group = 'com.taover.repository'
mainClassName = 'com.taover.repository.UtilsString'
dependencies {
compile("org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.2.Final")
compile('org.springframework:spring-jdbc:4.3.9.RELEASE')
compile('mysql:mysql-connector-java:5.1.47')
}
repositories {
jcenter()
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}