Skip to content

Commit 0a9321e

Browse files
committed
release 1.0.2(shaded)
1 parent b64649e commit 0a9321e

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

build.gradle

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff 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

2728
repositories {
@@ -36,7 +37,7 @@ dependencies {
3637
}
3738

3839
group = 'me.sunlan'
39-
version = '1.0.1'
40+
version = '1.0.2'
4041

4142
sourceCompatibility = JavaVersion.VERSION_1_8
4243
targetCompatibility = 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+
7783
publishing {
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'

0 commit comments

Comments
 (0)