Skip to content

Commit

Permalink
feat(test): remove unused test
Browse files Browse the repository at this point in the history
  • Loading branch information
halibobo1205 committed Jul 26, 2024
1 parent 08874c7 commit 0abca03
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 33 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ subprojects {

// https://www.oracle.com/java/technologies/javase/11-relnote-issues.html#JDK-8190378
implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
implementation 'org.glassfish.jaxb:jaxb-runtime:4.0.5'
implementation 'javax.annotation:javax.annotation-api:1.3.2'
implementation group: 'javax.jws', name: 'javax.jws-api', version: '1.1'
implementation group: 'javax.activation', name: 'activation', version: '1.1.1'
Expand Down
28 changes: 0 additions & 28 deletions chainbase/src/test/java/org/tron/common/math/MathsTest.java

This file was deleted.

21 changes: 17 additions & 4 deletions plugins/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,20 @@ configurations {
checkstyleConfig
}

configurations.getByName('checkstyleConfig') {
jdepsReport {
sourceSets = ['main', 'test']
configurations = ['testRuntimeClasspath']
consoleOutput = false
}

jdeprscanReport {
sourceSets = ['main', 'test']
configurations = ['testRuntimeClasspath']
forRemoval = true
release = JavaVersion.VERSION_17.getMajorVersion()
}

configurations.named('checkstyleConfig') {
transitive = false
}

Expand Down Expand Up @@ -48,7 +61,7 @@ checkstyleMain {
source = 'src/main/java'
}

task lint(type: Checkstyle) {
tasks.register('lint', Checkstyle) {
// Cleaning the old log because of the creation of the new ones (not sure if totaly needed)
delete fileTree(dir: "${project.rootDir}/app/build/reports")
source 'src'
Expand Down Expand Up @@ -90,7 +103,7 @@ jacocoTestReport {
}

def binaryRelease(taskName, jarName, mainClass) {
return tasks.create("${taskName}", Jar) {
return tasks.register("${taskName}", Jar) {
baseName = jarName
version = null
from(sourceSets.main.output) {
Expand Down Expand Up @@ -151,7 +164,7 @@ if (releaseBinary == 'true') {
}
}

task copyToParent(type: Copy) {
tasks.register('copyToParent', Copy) {
into "../build/distributions"
from "$buildDir/distributions"
include "*.zip"
Expand Down

0 comments on commit 0abca03

Please sign in to comment.