Skip to content

Commit 578bf6c

Browse files
author
Artem Eroshenko
authored
Update dependencies (fix ncdf) (via #104)
1 parent 260cee5 commit 578bf6c

10 files changed

Lines changed: 70 additions & 34 deletions

File tree

allure-teamcity-agent/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ agentPlugin {
1717
dependencies {
1818
compile project(':allure-teamcity-common')
1919

20-
compile 'net.sf.json-lib:json-lib:2.4:jdk15'
20+
compile 'commons-io:commons-io:2.7'
21+
compile 'org.apache.commons:commons-lang3:3.4'
2122
compile 'commons-logging:commons-logging:1.1.3'
2223
compile 'commons-httpclient:commons-httpclient:3.1'
2324
compile 'org.apache.commons:commons-compress:1.16.1'

allure-teamcity-agent/src/main/java/io/qameta/allure/teamcity/AllureBuildServiceAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import jetbrains.buildServer.agent.runner.SimpleProgramCommandLine;
1212
import jetbrains.buildServer.runner.JavaRunnerConstants;
1313
import org.apache.commons.io.FileUtils;
14-
import org.apache.commons.lang.SystemUtils;
14+
import org.apache.commons.lang3.SystemUtils;
1515
import org.jetbrains.annotations.NotNull;
1616

1717
import java.io.File;

allure-teamcity-agent/src/main/java/io/qameta/allure/teamcity/callables/AbstractAddInfo.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package io.qameta.allure.teamcity.callables;
22

3-
import net.sf.json.JSONObject;
3+
import com.fasterxml.jackson.databind.ObjectMapper;
44

55
import java.io.IOException;
66
import java.io.Writer;
@@ -17,9 +17,8 @@ public Path invoke(Path outputDirectory) throws IOException {
1717
Files.createDirectories(outputDirectory);
1818
Path testRun = outputDirectory.resolve(getFileName());
1919
try (Writer writer = Files.newBufferedWriter(testRun, StandardCharsets.UTF_8)) {
20-
JSONObject.fromObject(getData())
21-
.write(writer)
22-
.flush();
20+
final ObjectMapper mapper = new ObjectMapper();
21+
mapper.writeValue(writer, getData());
2322
}
2423
return testRun;
2524
}

allure-teamcity-common/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
apply plugin: "java-library"
12
apply plugin: "com.github.rodm.teamcity-common"
23

34
teamcity {

allure-teamcity-server/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,18 @@ serverPlugin {
2525
version = null //teamcity plugin file name should be without version suffix
2626
}
2727

28-
configurations.archives.artifacts.removeAll { it.archiveTask.is jar }
28+
//configurations.archives.artifacts.removeAll { it.archiveTask.is jar }
2929

3030
dependencies {
3131
def teamcityFullDir = "$teamcityDir/TeamCity-2017.1.5"
3232
agent project(path: ':allure-teamcity-agent', configuration: 'plugin')
3333

3434
compile project(':allure-teamcity-common')
3535

36-
provided 'javax.servlet:jstl:1.1.2'
36+
compile 'commons-io:commons-io:2.7'
3737
compile 'org.apache.commons:commons-lang3:3.4'
38+
39+
provided 'javax.servlet:jstl:1.1.2'
3840
provided "org.jetbrains.teamcity.internal:server:$teamcityVersion"
3941
provided files("${teamcityFullDir}/webapps/ROOT/WEB-INF/lib/server-tools.jar")
4042
provided files("${teamcityFullDir}/webapps/ROOT/WEB-INF/lib/common-tools.jar")

build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ configure(rootProject) {
3131
task build() {
3232
}
3333

34-
task wrapper(type: Wrapper) {
35-
gradleVersion = '4.0.1'
36-
}
34+
}
35+
36+
tasks.withType(Wrapper.class) {
37+
gradleVersion = '6.4'
3738
}
3839

3940
allprojects {

gradle/wrapper/gradle-wrapper.jar

4.1 KB
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Wed Jul 19 14:59:39 MSK 2017
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0.1-bin.zip

gradlew

Lines changed: 33 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 21 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)