Skip to content
This repository was archived by the owner on Mar 21, 2022. It is now read-only.

Commit f7935ef

Browse files
wip: jitpack publishing
1 parent bf731c4 commit f7935ef

File tree

2 files changed

+11
-29
lines changed

2 files changed

+11
-29
lines changed

landscape/build.gradle

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ dependencies {
4848
}
4949

5050
assemble.dependsOn shadowJar
51-
//jar.enabled = false
51+
jar.enabled = false
5252

5353
jar {
5454
manifest {
@@ -63,33 +63,6 @@ shadowJar {
6363
archiveName = "explorviz-${project.name}.${extension}"
6464
}
6565

66-
// Jitpack publishing
67-
artifacts {
68-
archives shadowJar
69-
}
70-
71-
publishing {
72-
publications {
73-
mavenJava(MavenPublication) {
74-
groupId project.group
75-
artifactId project.name
76-
version project.version
77-
from components.java
78-
artifact shadowJar
79-
}
80-
}
81-
}
82-
83-
install {
84-
repositories {
85-
mavenInstaller {
86-
addFilter('explorviz-landscape') { artifact, file ->
87-
artifact.name == 'explorviz-landscape'
88-
}
89-
}
90-
}
91-
}
92-
9366
// Javadoc settings
9467
javadoc {
9568
source = sourceSets.main.allJava
@@ -122,3 +95,8 @@ task spotbugs {
12295
dependsOn 'spotbugsMain'
12396
dependsOn 'spotbugsTest'
12497
}
98+
99+
// Jitpack publishing
100+
artifacts {
101+
archives shadowJar
102+
}

shared/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ apply plugin: 'com.github.spotbugs'
22
// Maven plugin for Jitpack subproject publishing
33
apply plugin: 'maven'
44

5-
dependencies {
5+
jar {
6+
archiveName = "explorviz-${project.name}.${extension}"
7+
}
8+
9+
dependencies {
610
// JSON Web Token (JWT)
711
compile 'io.jsonwebtoken:jjwt-api:0.10.5'
812
compile 'io.jsonwebtoken:jjwt-impl:0.10.5', 'io.jsonwebtoken:jjwt-jackson:0.10.5'

0 commit comments

Comments
 (0)