Skip to content

Commit 34f1220

Browse files
committed
Update build.gradle
1 parent fb34825 commit 34f1220

File tree

1 file changed

+67
-1
lines changed

1 file changed

+67
-1
lines changed

build.gradle

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,80 @@ plugins {
55
}
66

77
group 'com.github.kayjam'
8+
archivesBaseName = "executor"
89
version '0.1'
910

1011
dependencies {
1112
implementation group: 'com.github.kayjamlang', name: 'core', version: '0.1'
12-
//implementation project(":core")
1313
testCompile group: 'junit', name: 'junit', version: '4.13'
1414
}
1515

1616
repositories {
1717
mavenCentral()
18+
}
19+
20+
publishing {
21+
publications {
22+
mavenJava(MavenPublication) {
23+
groupId = 'com.github.kayjamlang'
24+
artifactId = project.archivesBaseName
25+
version = project.version
26+
27+
pom {
28+
name = 'KayJam Executor'
29+
description = 'Provided by the KayJam code executor'
30+
url = 'https://github.com/KayJamLang/executor'
31+
licenses {
32+
license {
33+
name = 'GNU General Public License v3.0'
34+
url = 'https://www.gnu.org/licenses/gpl-3.0.html'
35+
}
36+
}
37+
38+
developers {
39+
developer {
40+
id = 'levkopo'
41+
name = 'Lev Koporushkin'
42+
43+
}
44+
}
45+
46+
scm {
47+
connection = 'scm:git:git://github.com/KayJamLang/executor.git'
48+
developerConnection = 'scm:git:ssh://github.com/KayJamLang/executor.git'
49+
url = 'https://github.com/KayJamLang/executor'
50+
}
51+
}
52+
53+
from components.java
54+
}
55+
}
56+
57+
repositories {
58+
maven {
59+
url 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
60+
credentials {
61+
username sonatypeUsername
62+
password sonatypePassword
63+
}
64+
}
65+
66+
maven {
67+
name = "GitHubPackages"
68+
url = uri("https://maven.pkg.github.com/KayJamLang/"+project.archivesBaseName)
69+
credentials {
70+
username = githubUsername
71+
password = githubKey
72+
}
73+
}
74+
}
75+
}
76+
77+
java {
78+
withJavadocJar()
79+
withSourcesJar()
80+
}
81+
82+
signing {
83+
sign publishing.publications.mavenJava
1884
}

0 commit comments

Comments
 (0)