Skip to content

Commit

Permalink
Publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
meanmail committed Oct 31, 2022
1 parent 739ea31 commit 380bbc0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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'
}
Expand Down Expand Up @@ -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
}
}
}
}
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
spaceUsername=
spacePassword=

0 comments on commit 380bbc0

Please sign in to comment.