diff --git a/build.gradle b/build.gradle index b95bce4..7798ce7 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java' id 'java-library' + id 'maven-publish' // id 'checkstyle' doesn't work with jitpack for some reason // id 'org.jetbrains.kotlin.jvm' version '1.3.60' } @@ -72,3 +73,23 @@ task createFatJar(type: Jar) { } with jar } + +publishing { + publications { + maven(MavenPublication) { + groupId = "com.github.hyperskill" + artifactId = "hs-test" + version = "release-SNAPSHOT" + from components.java + } + } + repositories { + maven { + url "https://packages.jetbrains.team/maven/p/academy/hyperskill-hspc" + credentials { + username = spaceUsername + password = spacePassword + } + } + } +} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..7b1d3dc --- /dev/null +++ b/gradle.properties @@ -0,0 +1,2 @@ +spaceUsername= +spacePassword=