File tree 5 files changed +32
-6
lines changed
5 files changed +32
-6
lines changed Original file line number Diff line number Diff line change 6
6
build :
7
7
./gradlew shadowJar
8
8
9
+ .PHONY : publish
10
+ publish :
11
+ @echo " ./gradlew clean :agent:shadowJar publishToSonatype closeAndReleaseSonatypeStagingRepository"
12
+ @./gradlew clean :agent:shadowJar publishToSonatype closeAndReleaseSonatypeStagingRepository \
13
+ -PsonatypeUsername=" $( NEXUS_USERNAME) " \
14
+ -PsonatypePassword=" $( NEXUS_PASSWORD) " \
15
+ -Psigning.secretKeyRingFile=" $( NEXUS_GPG_SECRING_FILE) " \
16
+ -Psigning.password=" $( NEXUS_GPG_PASSWORD) " \
17
+ -Psigning.keyId=" $( NEXUS_GPG_KEY_ID) "
18
+ @echo " Now you go https://s01.oss.sonatype.org, close the temporarly created staging repository and release it"
19
+ @echo " https://central.sonatype.org/publish/release/#locate-and-examine-your-staging-repository"
20
+
9
21
.PHONY : test
10
22
test :
11
23
./gradlew test
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ repositories {
22
22
}
23
23
24
24
def asyncProfilerVersion = " 2.8.0.2"
25
- def pyroscopeVersion = " 0.8.0 "
25
+ def pyroscopeVersion = project . properties[ ' pyroscope_version ' ]
26
26
dependencies {
27
27
implementation files(" $buildDir /async-profiler/async-profiler.jar" )
28
28
implementation group : ' org.apache.logging.log4j' , name : ' log4j-core' , version : ' 2.17.1'
@@ -190,3 +190,4 @@ publishing {
190
190
signing {
191
191
sign publishing. publications. shadow
192
192
}
193
+
Original file line number Diff line number Diff line change
1
+ plugins {
2
+ id ' io.github.gradle-nexus.publish-plugin' version ' 1.1.0'
3
+ }
4
+
5
+ group = " io.pyroscope"
6
+ version = project. properties[' pyroscope_version' ]
7
+
8
+ nexusPublishing {
9
+ repositories {
10
+ sonatype { // only for users registered in Sonatype after 24 Feb 2021
11
+ nexusUrl. set(uri(" https://s01.oss.sonatype.org/service/local/" ))
12
+ snapshotRepositoryUrl. set(uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" ))
13
+ }
14
+ }
15
+ }
Original file line number Diff line number Diff line change @@ -9,10 +9,6 @@ repositories {
9
9
mavenCentral()
10
10
}
11
11
dependencies {
12
- if (project. hasProperty(" pyroscopeDev" )) {
13
- implementation(project(" :agent" ))
14
- } else {
15
- implementation(' io.pyroscope:agent:0.8.0' )
16
- }
12
+ implementation(project(" :agent" ))
17
13
}
18
14
Original file line number Diff line number Diff line change
1
+ pyroscope_version =0.8.1
2
+
You can’t perform that action at this time.
0 commit comments