|
1 |
| -apply plugin: 'java' |
2 |
| -apply plugin: 'idea' |
3 |
| -apply plugin: 'maven-publish' |
4 |
| -apply plugin: 'eclipse' |
5 |
| -apply plugin: 'jacoco' |
6 |
| -apply plugin: 'checkstyle' |
7 |
| -apply plugin: 'signing' |
8 |
| - |
9 | 1 | import org.apache.tools.ant.filters.*
|
10 | 2 |
|
| 3 | +plugins { |
| 4 | + id 'java' |
| 5 | + id 'idea' |
| 6 | + id 'maven-publish' |
| 7 | + id 'eclipse' |
| 8 | + id 'jacoco' |
| 9 | + id 'checkstyle' |
| 10 | + id 'signing' |
| 11 | + id 'org.owasp.dependencycheck' version '5.3.2.1' |
| 12 | + id 'com.github.johnrengelman.shadow' version '5.2.0' |
| 13 | +} |
| 14 | + |
11 | 15 | repositories {
|
12 | 16 | jcenter()
|
13 | 17 | mavenCentral()
|
14 | 18 | }
|
15 | 19 |
|
16 |
| -buildscript { |
17 |
| - repositories { |
18 |
| - jcenter() |
19 |
| - mavenCentral() |
20 |
| - } |
21 |
| - dependencies { |
22 |
| - classpath 'org.owasp:dependency-check-gradle:5.3.2.1' |
23 |
| - classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0' |
24 |
| - } |
25 |
| -} |
26 |
| - |
27 |
| -apply plugin: 'org.owasp.dependencycheck' |
28 |
| -apply plugin: 'com.github.johnrengelman.shadow' |
29 |
| - |
30 | 20 | configurations {
|
31 | 21 | ecj
|
32 | 22 | lombok
|
@@ -60,33 +50,39 @@ compileJava {
|
60 | 50 | dependencies {
|
61 | 51 | compileOnly('org.projectlombok:lombok:1.18.12')
|
62 | 52 | annotationProcessor('org.projectlombok:lombok:1.18.12')
|
63 |
| - compile ("org.seleniumhq.selenium:selenium-java:${project.property('selenium.version')}") { |
64 |
| - force = true |
| 53 | + implementation ("org.seleniumhq.selenium:selenium-java") { |
| 54 | + version { |
| 55 | + strictly "${project.property('selenium.version')}" |
| 56 | + } |
65 | 57 |
|
66 | 58 | exclude group: 'com.google.code.gson'
|
67 | 59 | exclude module: 'htmlunit-driver'
|
68 | 60 | exclude group: 'net.sourceforge.htmlunit'
|
69 | 61 |
|
70 | 62 | }
|
71 |
| - compile ("org.seleniumhq.selenium:selenium-support:${project.property('selenium.version')}") { |
72 |
| - force = true |
| 63 | + implementation ("org.seleniumhq.selenium:selenium-support") { |
| 64 | + version { |
| 65 | + strictly "${project.property('selenium.version')}" |
| 66 | + } |
73 | 67 | }
|
74 |
| - compile ("org.seleniumhq.selenium:selenium-api:${project.property('selenium.version')}") { |
75 |
| - force = true |
| 68 | + implementation ("org.seleniumhq.selenium:selenium-api") { |
| 69 | + version { |
| 70 | + strictly "${project.property('selenium.version')}" |
| 71 | + } |
76 | 72 | }
|
77 |
| - compile 'com.google.code.gson:gson:2.8.6' |
78 |
| - compile 'org.apache.httpcomponents:httpclient:4.5.12' |
79 |
| - compile 'cglib:cglib:3.3.0' |
80 |
| - compile 'commons-validator:commons-validator:1.7' |
81 |
| - compile 'org.apache.commons:commons-lang3:3.11' |
82 |
| - compile 'commons-io:commons-io:2.7' |
83 |
| - compile 'org.springframework:spring-context:5.2.8.RELEASE' |
84 |
| - compile 'org.aspectj:aspectjweaver:1.9.6' |
85 |
| - compile 'org.slf4j:slf4j-api:1.7.30' |
86 |
| - |
87 |
| - testCompile 'junit:junit:4.13' |
88 |
| - testCompile 'org.hamcrest:hamcrest:2.2' |
89 |
| - testCompile (group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '4.2.0') { |
| 73 | + implementation 'com.google.code.gson:gson:2.8.6' |
| 74 | + implementation 'org.apache.httpcomponents:httpclient:4.5.12' |
| 75 | + implementation 'cglib:cglib:3.3.0' |
| 76 | + implementation 'commons-validator:commons-validator:1.7' |
| 77 | + implementation 'org.apache.commons:commons-lang3:3.11' |
| 78 | + implementation 'commons-io:commons-io:2.7' |
| 79 | + implementation 'org.springframework:spring-context:5.2.8.RELEASE' |
| 80 | + implementation 'org.aspectj:aspectjweaver:1.9.6' |
| 81 | + implementation 'org.slf4j:slf4j-api:1.7.30' |
| 82 | + |
| 83 | + testImplementation 'junit:junit:4.13' |
| 84 | + testImplementation 'org.hamcrest:hamcrest:2.2' |
| 85 | + testImplementation (group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '4.2.0') { |
90 | 86 | exclude group: 'org.seleniumhq.selenium'
|
91 | 87 | }
|
92 | 88 | }
|
@@ -134,8 +130,6 @@ publishing {
|
134 | 130 | artifactId = 'java-client'
|
135 | 131 | version = '7.3.0'
|
136 | 132 | from components.java
|
137 |
| - artifact sourcesJar |
138 |
| - artifact javadocJar |
139 | 133 | pom {
|
140 | 134 | name = 'java-client'
|
141 | 135 | description = 'Java client for Appium Mobile Webdriver'
|
@@ -199,7 +193,7 @@ signing {
|
199 | 193 | }
|
200 | 194 |
|
201 | 195 | wrapper {
|
202 |
| - gradleVersion = '5.4' |
| 196 | + gradleVersion = '6.6.1' |
203 | 197 | distributionType = Wrapper.DistributionType.ALL
|
204 | 198 | }
|
205 | 199 |
|
|
0 commit comments