Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support gradle #9170

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Maven

on:
push:
branches: [ master, 2.3.x ]
pull_request:
branches: [ master, 2.3.x ]

jobs:

build:
runs-on: ubuntu-20.04
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Cache node modules
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-modules-
- name: Cache node install
uses: actions/cache@v2
with:
path: 'node_install'
key: ${{ runner.os }}-node_install-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-node_install-
- name: Set JAVA_HOME
run: |
echo "JAVA_8_HOME=$JAVA_HOME_8_X64" >> $GITHUB_ENV
echo "JAVA_11_HOME=$JAVA_HOME_11_X64" >> $GITHUB_ENV
echo "JAVA_HOME=$JAVA_HOME_8_X64" >> $GITHUB_ENV
- name: Java Environment
run: env | grep '^JAVA'
- name: Build with Maven
run: ./gradlew assemble
- name: Code coverage
uses: codecov/codecov-action@v1
with:
files: ./**/target/site/jacoco/jacoco.xml
name: codecov
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Maven
deploy/
target/
# gradle
build/

# Eclipse
.classpath
Expand Down Expand Up @@ -32,4 +34,9 @@ dist/

# logs
logs/
manager-logs/
manager-logs/

### Gradle ###
.gradle
**/build/
.mvn/.gradle-enterprise/
7 changes: 7 additions & 0 deletions .mvn/_extensions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<extensions>
<extension>
<groupId>com.gradle</groupId>
<artifactId>gradle-enterprise-maven-extension</artifactId>
<version>1.12.4</version>
</extension>
</extensions>
17 changes: 17 additions & 0 deletions agent-plugins/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
plugins {
id("com.navercorp.pinpoint.java-platform")
}

javaPlatform {
allowDependencies()
}

dependencies {
api(project(":pinpoint-agent-proxy-common"))
api(project(":pinpoint-agent-proxy-apache-plugin"))
api(project(":pinpoint-agent-proxy-app-plugin"))
api(project(":pinpoint-agent-proxy-nginx-plugin"))
api(project(":pinpoint-agent-proxy-user-plugin"))
}

description = "pinpoint-agent-plugins"
13 changes: 13 additions & 0 deletions agent-plugins/proxy-apache/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation(project(":pinpoint-agent-proxy-common"))
compileOnly(project(":pinpoint-profiler"))
compileOnly(project(":pinpoint-commons"))
testCompileOnly(project(":pinpoint-profiler"))
compileOnly(project(":pinpoint-bootstrap-core"))
}

description = "pinpoint-agent-proxy-apache-plugin"
13 changes: 13 additions & 0 deletions agent-plugins/proxy-app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation(project(":pinpoint-agent-proxy-common"))
compileOnly(project(":pinpoint-profiler"))
compileOnly(project(":pinpoint-commons"))
testCompileOnly(project(":pinpoint-profiler"))
compileOnly(project(":pinpoint-bootstrap-core"))
}

description = "pinpoint-agent-proxy-app-plugin"
5 changes: 5 additions & 0 deletions agent-plugins/proxy-common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

description = "pinpoint-agent-proxy-common"
13 changes: 13 additions & 0 deletions agent-plugins/proxy-nginx/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation(project(":pinpoint-agent-proxy-common"))
compileOnly(project(":pinpoint-profiler"))
compileOnly(project(":pinpoint-commons"))
testCompileOnly(project(":pinpoint-profiler"))
compileOnly(project(":pinpoint-bootstrap-core"))
}

description = "pinpoint-agent-proxy-nginx-plugin"
14 changes: 14 additions & 0 deletions agent-plugins/proxy-user/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation(project(":pinpoint-agent-proxy-common"))
compileOnly(project(":pinpoint-profiler"))
compileOnly(project(":pinpoint-commons"))
testCompileOnly(project(":pinpoint-profiler"))
compileOnly(project(":pinpoint-bootstrap-core"))
testImplementation(libs.log4j.api)
}

description = "pinpoint-agent-proxy-user-plugin"
5 changes: 5 additions & 0 deletions agent-sdk/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

description = "pinpoint-agent-sdk"
14 changes: 14 additions & 0 deletions agent-testweb/agentsdk-async-testweb/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation(libs.spring.boot.starter.web)
implementation(libs.spring.boot.starter.logging)
implementation(libs.spring.boot.starter.actuator)
implementation(libs.springdoc.openapi.ui)
api(project(":pinpoint-agent-sdk"))
compileOnly(libs.spring.boot.starter.tomcat)
}

description = "pinpoint-agentsdk-async-testweb"
2 changes: 1 addition & 1 deletion agent-testweb/bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<jedis.version>2.4.2</jedis.version>
<lettuce.version>6.1.5.RELEASE</lettuce.version>
<cassandra.driver.version>2.1.7.1</cassandra.driver.version>
<dubbo.version>2.5.3</dubbo.version>
<dubbo.version>2.5.12</dubbo.version>
<mongo.driver.version>3.9.0</mongo.driver.version>
<apache.dubbo.version>2.7.2</apache.dubbo.version>
<ehcache.version>2.10.6</ehcache.version>
Expand Down
17 changes: 17 additions & 0 deletions agent-testweb/dubbo-plugin-testweb/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation(libs.spring.boot.starter.web)
implementation(libs.spring.boot.starter.logging)
implementation(libs.spring.boot.starter.actuator)
implementation(libs.springdoc.openapi.ui)
implementation("org.apache.dubbo:dubbo:2.7.18")
implementation("org.apache.dubbo:dubbo-dependencies-zookeeper:2.7.18") {
exclude(group = "org.apache.curator", module = "curator-framework")
}
compileOnly(libs.spring.boot.starter.tomcat)
}

description = "pinpoint-dubbo-plugin-testweb"
14 changes: 14 additions & 0 deletions agent-testweb/jdk-http-plugin-testweb/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation(libs.spring.boot.starter.web)
implementation(libs.spring.boot.starter.logging)
implementation(libs.spring.boot.starter.actuator)
implementation(libs.springdoc.openapi.ui)
implementation(libs.commons.io)
compileOnly(libs.spring.boot.starter.tomcat)
}

description = "pinpoint-jdk-http-plugin-testweb"
15 changes: 15 additions & 0 deletions agent-testweb/paho-mqtt-plugin-testweb/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation(libs.spring.boot.starter.web)
implementation(libs.spring.boot.starter.logging)
implementation(libs.spring.boot.starter.actuator)
implementation(libs.springdoc.openapi.ui)
compileOnly(libs.spring.boot.starter.tomcat)
compileOnly("org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5")
compileOnly("org.eclipse.paho:org.eclipse.paho.mqttv5.client:1.2.5")
}

description = "pinpoint-paho-mqtt-plugin-testweb"
14 changes: 14 additions & 0 deletions agent-testweb/reactor-netty-plugin-testweb/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation(libs.spring.boot.starter.web)
implementation(libs.spring.boot.starter.logging)
implementation(libs.spring.boot.starter.actuator)
implementation(libs.springdoc.openapi.ui)
implementation("io.projectreactor.netty:reactor-netty:0.9.12.RELEASE")
compileOnly(libs.spring.boot.starter.tomcat)
}

description = "pinpoint-reactor-netty-plugin-testweb"
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation(libs.spring.boot.starter.web)
implementation(libs.spring.boot.starter.logging)
implementation(libs.spring.boot.starter.actuator)
implementation(libs.springdoc.openapi.ui)
implementation("org.apache.rocketmq:rocketmq-client:4.7.1")
compileOnly(libs.spring.boot.starter.tomcat)
}

description = "pinpoint-rocketmq-original"
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation(libs.spring.boot.starter.web)
implementation(libs.spring.boot.starter.logging)
implementation(libs.spring.boot.starter.actuator)
implementation(libs.springdoc.openapi.ui)
implementation("org.apache.rocketmq:rocketmq-spring-boot-starter:2.1.1")
compileOnly(libs.spring.boot.starter.tomcat)
}

description = "pinpoint-rocketmq-springboot"
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation(libs.spring.boot.starter.web)
implementation(libs.spring.boot.starter.logging)
implementation(libs.spring.boot.starter.actuator)
implementation(libs.springdoc.openapi.ui)
implementation("com.alibaba.cloud:spring-cloud-starter-stream-rocketmq:2.2.3.RELEASE")
compileOnly(libs.spring.boot.starter.tomcat)
}

description = "pinpoint-rocketmq-springcloud-stream"
10 changes: 10 additions & 0 deletions agent-testweb/spring-cloud-gateway-plugin-testweb/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation("org.springframework.cloud:spring-cloud-starter-gateway:2.1.2.RELEASE")
implementation("org.springframework.boot:spring-boot-autoconfigure:2.4.1")
}

description = "pinpoint-spring-cloud-gateway-plugin-testweb"
10 changes: 10 additions & 0 deletions agent-testweb/spring-webflux-plugin-testweb/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation("org.springframework.boot:spring-boot-starter-webflux:2.4.1")
implementation("org.springframework.boot:spring-boot-autoconfigure:2.4.1")
}

description = "pinpoint-spring-webflux-plugin-testweb"
13 changes: 13 additions & 0 deletions agent-testweb/thread-plugin-testweb/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation(libs.spring.boot.starter.web)
implementation(libs.spring.boot.starter.logging)
implementation(libs.spring.boot.starter.actuator)
implementation(libs.springdoc.openapi.ui)
compileOnly(libs.spring.boot.starter.tomcat)
}

description = "pinpoint-thread-plugin-testweb"
9 changes: 9 additions & 0 deletions agent-testweb/vertx-3-plugin-testweb/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation("io.vertx:vertx-web:3.9.8")
}

description = "pinpoint-vertx-3-plugin-testweb"
10 changes: 10 additions & 0 deletions agent-testweb/vertx-4-plugin-testweb/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

dependencies {
implementation("io.vertx:vertx-web:4.2.2")
implementation("io.vertx:vertx-web-client:4.2.2")
}

description = "pinpoint-vertx-4-plugin-testweb"
31 changes: 31 additions & 0 deletions agent/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
`java-library-distribution`
}

dependencies {
implementation(project(":pinpoint-annotations"))
implementation(project(":pinpoint-commons-buffer"))
implementation(project(":pinpoint-commons-profiler"))
implementation(project(":pinpoint-profiler"))
implementation(project(":pinpoint-profiler-test"))
implementation(project(":pinpoint-grpc"))
implementation(libs.log4j.api)
runtimeOnly(platform(project(":pinpoint-profiler-optional")))
runtimeOnly(platform(project(":pinpoint-plugins")))
runtimeOnly(platform(project(":pinpoint-agent-plugins")))
runtimeOnly(project(":pinpoint-bootstrap-core"))
runtimeOnly(project(":pinpoint-bootstrap-java8"))
runtimeOnly(project(":pinpoint-tools"))
runtimeOnly(libs.slf4j.api)
runtimeOnly(libs.log4j.core)
runtimeOnly(libs.log4j.slf4j.impl)
testImplementation(project(":pinpoint-commons"))
testImplementation(project(":pinpoint-plugins-loader"))
}

description = "pinpoint-agent-distribution"

distributions {

}
5 changes: 5 additions & 0 deletions annotations/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
plugins {
id("com.navercorp.pinpoint.java8-library")
}

description = "pinpoint-annotations"
Loading