-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
69 lines (59 loc) · 1.6 KB
/
Copy pathbuild.gradle
File metadata and controls
69 lines (59 loc) · 1.6 KB
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
69
plugins {
id 'java'
}
apply plugin: 'java'
apply plugin: 'maven-publish'
group 'com.github.TerZer'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven {
url "https://jitpack.io"
}
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
implementation 'com.oracle.database.jdbc:ojdbc11:21.3.0.0'
implementation group: 'mysql', name: 'mysql-connector-java', version: '5.1.21'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0'
implementation group: 'com.google.guava', name: 'guava', version: '31.0.1-jre'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
// To specify a license in the pom:
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'lt.terzer'
artifactId = 'database'
version = '1.0-SNAPSHOT'
pom {
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
}
from components.java
}
}
}
wrapper {
gradleVersion = "7.3.3"
distributionType = Wrapper.DistributionType.ALL
}
test {
useJUnitPlatform()
}