-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathbuild.gradle
92 lines (78 loc) · 1.9 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
91
92
buildscript {
ext {
gradleVersion = '7.1'
}
}
plugins {
id "org.sonarqube" version "3.3"
id "java"
id "idea"
id 'com.github.johnrengelman.shadow' version '7.1.1'
id 'maven-publish'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
def title = 'WAAT'
version = 'v2.0'
group = "com.github.anandbagmar"
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
implementation "commons-collections:commons-collections:3.2.2"
implementation "log4j:log4j:1.2.17"
implementation "com.thoughtworks.xstream:xstream:1.3.1"
implementation "net.lightbody.bmp:browsermob-core:2.1.5"
implementation "org.seleniumhq.selenium:selenium-java:3.141.59"
implementation "io.appium:java-client:7.0.0"
implementation "org.testng:testng:7.4.0"
implementation "io.github.bonigarcia:webdrivermanager:+"
}
test {
useTestNG()
}
jar {
manifest {
attributes 'Implementation-Title': title,
'Implementation-Version': version
}
}
shadowJar {
archiveBaseName.set("$project.name")
archiveClassifier.set('')
archiveVersion.set("$project.version")
zip64 true
manifest {
attributes 'Implementation-Title': title,
'Implementation-Version': archiveVersion
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
archives shadowJar
}
wrapper {
gradleVersion = project.gradleVersion // version from gradle.properties
}
publishing {
publications {
testing(MavenPublication) {
from components.java
artifact sourcesJar
}
}
}
task copyJars(type: Copy) {
from('build/libs')
into('dist')
include('*.jar')
}
wrapper {
gradleVersion = project.gradleVersion // version from gradle.properties
}