File tree Expand file tree Collapse file tree 3 files changed +14
-10
lines changed
src/main/java/com/lambdatest/jenkins/analytics Expand file tree Collapse file tree 3 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ https://github.com/jenkinsci/gradle-jpi-plugin
2020
2121###### This command will run the gradle Task : build
2222<pre >gradle build</pre >
23+ or
24+ <pre >./gradlew build</pre >
2325
2426###### This command will run the gradle Task : server
2527<pre >gradle server</pre >
@@ -45,6 +47,11 @@ $ gradle release -Prelease.useAutomaticVersion=true
4547$ export JAVA_HOME=` /usr/libexec/java_home -v 1.8`
4648```
4749
50+ ** Required Gradle version 4.7**
51+ ``` bash
52+ $ ./gradlew wrapper --gradle-version 4.7
53+ ```
54+
4855## License
4956
5057This program is free software and is distributed under an [ MPL-2.0 License] ( LICENSE ) .
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ buildscript {
1010 repositories {
1111 maven {
1212 name " jenkins"
13- delegate. url(" http ://repo.jenkins-ci.org/releases/" )
13+ delegate. url(" https ://repo.jenkins-ci.org/releases/" )
1414 }
1515 // The plugin is currently only available via the Jenkins
1616 // Maven repository, but has dependencies in Maven Central.
@@ -30,7 +30,7 @@ plugins {
3030
3131group = ' org.jenkins-ci.plugins'
3232
33- version = ' 1.19.4 '
33+ version = ' 1.20.0 '
3434
3535description = ' LambdaTest Plugin is used to run automated selenium tests on LambdaTest Cloud'
3636
@@ -123,9 +123,6 @@ dependencies {
123123 compile group : ' org.apache.httpcomponents' , name : ' httpclient' , version : ' 4.5.6'
124124 compile group : ' org.apache.httpcomponents' , name : ' httpcore' , version : ' 4.4.10'
125125
126- compile group : ' org.apache.logging.log4j' , name : ' log4j-core' , version : ' 2.11.2'
127- compile group : ' org.apache.logging.log4j' , name : ' log4j-api' , version : ' 2.11.2'
128-
129126 // https://mvnrepository.com/artifact/org.json/json
130127 compile group : ' org.json' , name : ' json' , version : ' 20090211'
131128
Original file line number Diff line number Diff line change 55import com .lambdatest .jenkins .freestyle .api .Constant ;
66import com .lambdatest .jenkins .freestyle .api .service .CapabilityService ;
77
8- import org . apache .logging .log4j . LogManager ;
9- import org . apache . logging . log4j . Logger ;
8+ import java . util .logging .Logger ;
9+
1010
1111public class AnalyticService implements Runnable {
1212
13- //private final static Logger logger = Logger.getLogger(CapabilityService.class.getName());
14- private static final Logger logger = LogManager .getLogger (AnalyticService .class );
13+
14+ private static final Logger logger = Logger .getLogger (AnalyticService .class . getName () );
1515
1616 private AnalyticRequest analyticRequest ;
1717
@@ -20,7 +20,7 @@ public void run() {
2020 try {
2121 CapabilityService .sendPostRequest (Constant .ANALYTICS_URL , analyticRequest );
2222 } catch (Exception e ) {
23- logger .warn (e .getMessage ());
23+ logger .warning (e .getMessage ());
2424 }
2525 }
2626
You can’t perform that action at this time.
0 commit comments