-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
91 lines (73 loc) · 2.43 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group 'io.xiedeacc'
version '1.0'
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
}
dependencies {
implementation 'org.eclipse.jgit:org.eclipse.jgit:6.0.0.202111291000-r'
implementation 'org.eclipse.jgit:org.eclipse.jgit.lfs:6.0.0.202111291000-r'
implementation 'org.eclipse.jgit:org.eclipse.jgit.ssh.jsch:6.0.0.202111291000-r'
implementation 'org.gitlab4j:gitlab4j-api:4.18.0'
implementation 'org.apache.commons:commons-compress:1.21'
implementation 'org.apache.commons:commons-csv:1.9.0'
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
implementation 'org.apache.logging.log4j:log4j-core:2.14.1'
implementation 'org.apache.logging.log4j:log4j-api:2.14.1'
implementation 'org.apache.logging.log4j:log4j-jcl:2.14.1'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.2'
implementation 'com.google.guava:guava:30.1.1-jre'
implementation 'com.github.jnr:jnr-posix:3.1.7'
implementation 'commons-beanutils:commons-beanutils:1.9.4'
implementation 'commons-io:commons-io:2.11.0'
implementation 'commons-validator:commons-validator:1.7'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.3'
}
test {
useJUnitPlatform()
}
application {
mainClass = 'Tools.SyncGithubToGitlab'
}
shadowJar {
archiveClassifier.set('')
manifest {
attributes(
'Main-Class': 'Tools.SyncGithubToGitlab'
)
}
}
tasks.named('startScripts') {
dependsOn shadowJar
// Ensure the shadow JAR is used for start scripts
doLast {
classpath = files(shadowJar.archiveFile.get().asFile)
}
}
tasks.named('startShadowScripts') {
dependsOn jar
// Ensure the shadow JAR is used for start scripts
doLast {
classpath = files(shadowJar.archiveFile.get().asFile)
}
}
distZip {
dependsOn shadowJar
from { shadowJar.archiveFile }
}
// Ensure distTar also depends on shadowJar if you use it
distTar {
dependsOn shadowJar
from { shadowJar.archiveFile }
}
tasks.build {
dependsOn shadowJar
}