From 4b4b37fda767399ed3405aac2a70f1d272ce31ea Mon Sep 17 00:00:00 2001 From: mzdluo123 Date: Wed, 24 Feb 2021 21:22:26 +0800 Subject: [PATCH] fix no resources --- build.gradle | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 9843e8c..b9cd0e5 100644 --- a/build.gradle +++ b/build.gradle @@ -10,6 +10,10 @@ repositories { mavenCentral() } +jar { + from sourceSets.main.output +} + publishing { repositories { maven { @@ -23,8 +27,7 @@ publishing { } publications { gpr(MavenPublication) { - from(components.java) - artifact source: 'src/main/resources/*', classifier: 'features' + from(components["java"]) } } }