mirror of
https://gitee.com/arthas/arthas.git
synced 2024-11-29 10:47:57 +08:00
polish #2524
This commit is contained in:
parent
005fa1707b
commit
8593b1d77c
6
.github/workflows/test.yaml
vendored
6
.github/workflows/test.yaml
vendored
@ -17,7 +17,7 @@ jobs:
|
||||
distribution: 'zulu'
|
||||
cache: 'maven'
|
||||
- name: Build with Maven
|
||||
run: mvn clean package -P full
|
||||
run: mvn clean install -P full
|
||||
|
||||
windows_build:
|
||||
runs-on: windows-2019
|
||||
@ -33,7 +33,7 @@ jobs:
|
||||
distribution: 'zulu'
|
||||
cache: 'maven'
|
||||
- name: Build with Maven
|
||||
run: mvn clean package -P full
|
||||
run: mvn clean install -P full
|
||||
|
||||
macos_build:
|
||||
runs-on: macos-latest
|
||||
@ -49,4 +49,4 @@ jobs:
|
||||
distribution: 'zulu'
|
||||
cache: 'maven'
|
||||
- name: Build with Maven
|
||||
run: mvn clean package -P full
|
||||
run: mvn clean install -P full
|
@ -15,6 +15,10 @@
|
||||
<name>${project.artifactId}</name>
|
||||
<url>https://github.com/alibaba/arthas</url>
|
||||
|
||||
<properties>
|
||||
<it.pom.includes>*/pom.xml</it.pom.includes>
|
||||
</properties>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
@ -64,6 +68,19 @@
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>jdk-lt-17</id>
|
||||
<activation>
|
||||
<jdk>[1.8,17)</jdk>
|
||||
</activation>
|
||||
<properties>
|
||||
<!-- spring boot3 测试只支持 jdk 17 及之后版本 -->
|
||||
<it.pom.includes>arthas-spring-boot-starter-example/pom.xml</it.pom.includes>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
@ -79,12 +96,13 @@
|
||||
<streamLogs>true</streamLogs>
|
||||
<preBuildHookScript>setup</preBuildHookScript>
|
||||
<postBuildHookScript>verify</postBuildHookScript>
|
||||
<pomIncludes><pomInclude>${it.pom.includes}</pomInclude></pomIncludes>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>integration-test</id>
|
||||
<phase>test</phase>
|
||||
<goals>
|
||||
<goal>install</goal>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
|
@ -5,17 +5,17 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>@spring-boot.version@</version>
|
||||
<version>@spring-boot3.version@</version>
|
||||
<relativePath /> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
<groupId>com.example</groupId>
|
||||
<artifactId>arthas-spring-boot-starter-example</artifactId>
|
||||
<artifactId>arthas-spring-boot3-starter-example</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>arthas-spring-boot-starter-example</name>
|
||||
<name>arthas-spring-boot3-starter-example</name>
|
||||
<description>Demo project for Spring Boot</description>
|
||||
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
<java.version>17</java.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.example.arthasspringbootstarterexample;
|
||||
package com.example.arthasspringboot3starterexample;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
@ -6,10 +6,10 @@ import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class ArthasSpringBootStarterExampleApplication {
|
||||
public class ArthasSpringBoot3StarterExampleApplication {
|
||||
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
SpringApplication.run(ArthasSpringBootStarterExampleApplication.class, args);
|
||||
SpringApplication.run(ArthasSpringBoot3StarterExampleApplication.class, args);
|
||||
System.out.println("xxxxxxxxxxxxxxxxxx");
|
||||
TimeUnit.SECONDS.sleep(3);
|
||||
System.exit(0);
|
@ -1,10 +1,10 @@
|
||||
package com.example.arthasspringbootstarterexample;
|
||||
package com.example.arthasspringbootstarterexample3;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
@SpringBootTest
|
||||
class ArthasSpringBootStarterExampleApplicationTests {
|
||||
class ArthasSpringBoot3StarterExampleApplicationTests {
|
||||
|
||||
@Test
|
||||
void contextLoads() {
|
@ -1,2 +0,0 @@
|
||||
com.alibaba.arthas.spring.ArthasConfiguration
|
||||
com.alibaba.arthas.spring.endpoints.ArthasEndPointAutoConfiguration
|
@ -0,0 +1,2 @@
|
||||
com.alibaba.arthas.spring.ArthasConfiguration
|
||||
com.alibaba.arthas.spring.endpoints.ArthasEndPointAutoConfiguration
|
Loading…
Reference in New Issue
Block a user