From 8f140ad8b7ee6bc91ebcd22ffeb62906777a5876 Mon Sep 17 00:00:00 2001 From: zhaohong Date: Fri, 25 May 2018 23:02:23 +0800 Subject: [PATCH] add sonarcloud support. --- .travis.yml | 2 +- build.gradle | 3 ++- sonar-project.properties | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index d76ed4dd33a..ce686d2fd2a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ addons: ssh_known_hosts: - 47.93.9.236:22008 sonarcloud: - organization: "tron" # the key of the org you chose at step #3 + organization: "tron-zhaohong" # the key of the org you chose at step #3 token: secure: "DXtn8yjb2rs1dLgiSOT2w5DhskYriC252vOkeS5ydFNkfrwVFpZyGGzqJlBMhuD2MJvOb30bxUZmZC0EA3cw6BjZb4kkDrsga1HjaF2uPDFKyItTehz/BpTW4kurY4qREuxnhjw32GTdt/6n2t+93HabCIvyhNc7IZJpqCldND0VH3VNWAwRPNVnfz5uPxk0tGCHxYYk1+jKplhqiygiMSQyYqkrLiCUCxtZPoke7r2zi/WSvVhoGByF2u4rGPs6/vLWok4uxb2jd+ITOjppdKdXeqMUeJJgT/6QR4lTHuytwodTINfEQWG3D+W5oo3BVqzEBAQQDZPAxErWsX64xrAdfkX0oihw5DoU7MQFbRIamMAfO/1i7dId1aR4WrgyM7V/Qxp+JlqV6J2b0MVDq5L6jqjVBHzHgzZWs3ww+fx+4HqQYEyT2D/Ld492qX4HjkZw7HpJFY+xS4wWpN3BoGjnPNVW8d0CT/P9/WIgocCR8Sz2hCkBvSXvfp23K2Z1fhTBYNKrK+2wQ3+cCdn2AYbGCqP1vWpl3Cys4LmorVusjNM0QxUauIs55iG5+cPRLy69JYJZ6wEAfZTLSOtx5bhe3aQkBfzX9h0HX+UOe3DX4LQt5Y3mnolTrJNGCSBE+Q1v5GynJk3a3d9RA9PY2k0jLxHum9OfH2A3RZi0NgA=" diff --git a/build.gradle b/build.gradle index d20c3795fec..557c83a162f 100755 --- a/build.gradle +++ b/build.gradle @@ -12,6 +12,7 @@ buildscript { plugins { id "org.sonarqube" version "2.6" } + group 'org.tron' version '1.0.0' @@ -21,7 +22,7 @@ apply plugin: 'application' apply plugin: 'checkstyle' apply plugin: 'com.github.johnrengelman.shadow' apply plugin: "jacoco" -apply plugin: "org.sonarqube" + sourceCompatibility = 1.8 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' mainClassName = 'org.tron.program.FullNode' diff --git a/sonar-project.properties b/sonar-project.properties index f517ac83b50..4ae07ed70f6 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,5 +1,5 @@ -sonar.projectKey=tron -sonar.projectName=tron +sonar.projectKey=java-tron +sonar.projectName=java-tron sonar.projectVersion=2.1 # ===================================================== # Meta-data for the project