Skip to content

Commit

Permalink
1. delete the dependency:slf4j-api,make the generated plugin file(jar…
Browse files Browse the repository at this point in the history
…) more smaller
  • Loading branch information
xflcx1991 committed Sep 14, 2020
1 parent a9c54c2 commit c5997ff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 24 deletions.
16 changes: 10 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ buildscript {
}
}

version = '0.2'
version = '0.3'

configurations {
provided
// integrationTestCompile.extendsFrom testCompile
// integrationTestRuntime.extendsFrom testRuntime

all*.exclude group:'org.slf4j', module:'slf4j-nop'
all*.exclude group:'org.slf4j', module:'slf4j-jdk14'
// all*.exclude group:'org.slf4j', module:'slf4j-nop'
// all*.exclude group:'org.slf4j', module:'slf4j-jdk14'

//no effect
// testImplementation.exclude group:'org.slf4j', module:'slf4j-nop'
Expand Down Expand Up @@ -67,18 +67,22 @@ repositories {
}

dependencies {
compile 'org.slf4j:slf4j-api:1.7.25'
//no compile,because slf4j-api is included in OmegaT ifself
provided 'org.slf4j:slf4j-api:1.7.25'

provided 'org.omegat:omegat:4.3.0'
provided 'commons-io:commons-io:2.4'
provided 'commons-lang:commons-lang:2.6'
provided 'org.slf4j:slf4j-nop:1.7.21'
// no need.We can use slf4j-jdk14 which is included by "org.omegat:omegat:4.3.0"
// provided 'org.slf4j:slf4j-nop:1.7.21'
testCompile 'junit:junit:4.12'

//testCompile 'xmlunit:xmlunit:1.6'
//testCompile 'org.madlonkay.supertmxmerge:supertmxmerge:2.0.1'

//testCompile 'org.apache.logging.log4j:log4j-api:2.13.3'
//testCompile 'org.apache.logging.log4j:log4j-core:2.13.3'
testCompile 'org.apache.logging.log4j:log4j-slf4j-impl:2.13.3'
// testCompile 'org.apache.logging.log4j:log4j-slf4j-impl:2.13.3'

// https://mvnrepository.com/artifact/cn.hutool/hutool-json
compile group: 'cn.hutool', name: 'hutool-json', version: '5.4.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ public class YoudaoTranslateCloneTest {

@Before
public void setUp() throws Exception {
System.out.println(logger.isTraceEnabled());
System.out.println(logger.isDebugEnabled());
System.out.println(logger.isInfoEnabled());
System.out.println(logger.isWarnEnabled());
System.out.println(logger.isErrorEnabled());
// System.out.println(logger.isTraceEnabled());
// System.out.println(logger.isDebugEnabled());
// System.out.println(logger.isInfoEnabled());
// System.out.println(logger.isWarnEnabled());
// System.out.println(logger.isErrorEnabled());

// logger.setLevel(Level.WARN);

Expand Down
13 changes: 0 additions & 13 deletions src/test/resources/log4j2.xml

This file was deleted.

0 comments on commit c5997ff

Please sign in to comment.