diff --git a/build.gradle b/build.gradle index 0f08b65..d4ad3a0 100644 --- a/build.gradle +++ b/build.gradle @@ -1,13 +1,31 @@ -plugins { - id 'java' - id 'maven-publish' +allprojects { + group 'me.q1zz.spaceis.sdk' + version '0.2' } -allprojects { +subprojects { + + apply plugin: 'java' + apply plugin: 'maven-publish' + + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 java { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + withSourcesJar() + withJavadocJar() } -} \ No newline at end of file + publishing { + publications { + maven(MavenPublication) { + groupId project.group + artifactId project.name + version project.version + from components.java + } + } + } + +} +