Merge remote-tracking branch 'origin/dev-1.0' into dev-1.0

This commit is contained in:
junj2.liang 2022-09-01 19:35:54 +08:00
commit 18843fc99b
4 changed files with 55 additions and 3 deletions

33
pom.xml
View File

@ -42,10 +42,23 @@
<version>${log.version}</version> <version>${log.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>6.1.5</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>3.3.0.603</version>
</plugin>
</plugins>
</pluginManagement>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
@ -55,6 +68,24 @@
<target>8</target> <target>8</target>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>6.1.5</version>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration><!-- Generate all report formats -->
<format>ALL</format><!-- Don't use Nexus Analyzer -->
<centralAnalyzerEnabled>false</centralAnalyzerEnabled>
<versionCheckEnabled>true</versionCheckEnabled>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>

9
sonar.cmd Normal file
View File

@ -0,0 +1,9 @@
call mvn clean compile dependency-check:check
call mvn sonar:sonar ^
-Dsonar.projectKey=sydapi-sge-datebase ^
-Dsonar.host.url=http://172.16.17.236:9000 ^
-Dsonar.login=3f3a85127ef9636cf37a39d8fbfe823b7e952481 ^
-Dsonar.pdf.username=admin -Dsonar.pdf.password=admin ^
-Dsonar.dependencyCheck.jsonReportPath=target/dependency-check-report.json ^
-Dsonar.dependencyCheck.xmlReportPath=target/dependency-check-report.xml ^
-Dsonar.dependencyCheck.htmlReportPath=target/dependency-check-report.html

View File

@ -21,7 +21,7 @@ public class LengthTest
@Before @Before
public void init(){ public void init(){
SydApiBuilder builder = new SydApiBuilder( SydApiBuilder builder = new SydApiBuilder(
new String[]{ "192.168.0.200" }, new String[]{ "192.168.1.128" },
new int[]{ 8889 }, new int[]{ 8889 },
10, 10,
15 15

View File

@ -1,4 +1,4 @@
//package test; package test;
// //
//import com.sunyard.sge.database.*; //import com.sunyard.sge.database.*;
//import org.junit.Test; //import org.junit.Test;
@ -90,3 +90,15 @@
//// } //// }
// } // }
//} //}
public class Test {
public static void main(String[] args) {
if (16 > 1799 + 16
||
(1799 + 16)/16<2
) {
System.out.println("1");
}
}
}