File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ plugins {
2222 id ' maven-publish'
2323 id ' signing'
2424 id " me.champeau.jmh" version " 0.7.2"
25+ id " com.github.johnrengelman.shadow" version " 8.1.1"
2526}
2627
2728repositories {
@@ -36,7 +37,7 @@ dependencies {
3637}
3738
3839group = ' me.sunlan'
39- version = ' 1.0.1 '
40+ version = ' 1.0.2 '
4041
4142sourceCompatibility = JavaVersion . VERSION_1_8
4243targetCompatibility = JavaVersion . VERSION_1_8
@@ -74,11 +75,23 @@ jar {
7475 }
7576}
7677
78+ tasks. named(' shadowJar' , com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar ) {
79+ enableRelocation = true
80+ relocationPrefix = " me.sunlan.fastreflection.shaded"
81+ }
82+
7783publishing {
7884 publications {
7985 mavenJava(MavenPublication ) {
8086 artifactId = ' fast-reflection'
81- from components. java
87+ artifact shadowJar. archiveFile
88+ artifact javadocJar
89+ artifact sourcesJar
90+ signing {
91+ sign shadowJar
92+ sign javadocJar
93+ sign sourcesJar
94+ }
8295 pom {
8396 name = ' Fast Reflection'
8497 description = ' Yet another extremely fast alternative for Java reflection'
You can’t perform that action at this time.
0 commit comments