diff --git a/modules/qi-core/build.gradle b/modules/qi-core/build.gradle index a2b506d407..22a6fce5de 100644 --- a/modules/qi-core/build.gradle +++ b/modules/qi-core/build.gradle @@ -13,7 +13,7 @@ apply plugin: 'maven-publish' publishing { publications { mavenJava(MavenPublication) { - artifact jar + from components.java artifact (sourceJar) { classifier = 'sources' } @@ -80,5 +80,5 @@ jar { jar.dependsOn("vaadinCompile") install.dependsOn("publishToMavenLocal") -uploadArchives.dependsOn("publishMavenJavaPublicationToMavenRepository") +uploadArchives.dependsOn("jar", "publishMavenJavaPublicationToMavenRepository")