Skip to content

Commit bf53848

Browse files
Update buildfiles for jitpack
1 parent b0e5096 commit bf53848

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ buildscript {
44
kotlin_version = '1.4.20'
55
}
66
ext.myintent_pkg = "pl.mareklangiewicz.myintent"
7-
ext.myintent_name = "1.0.9-alpha"
8-
ext.myintent_code = 9
7+
ext.myintent_name = "1.0.10-alpha"
8+
ext.myintent_code = 10
99

1010
repositories {
1111
google()

pue/build.gradle

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
plugins {
22
id 'java-library'
33
id 'kotlin'
4+
id 'maven'
45
}
56

7+
group='com.github.langara'
8+
69
java {
710
sourceCompatibility = JavaVersion.VERSION_1_7
811
targetCompatibility = JavaVersion.VERSION_1_7
@@ -12,4 +15,14 @@ dependencies {
1215
implementation Deps.kotlinStdlib
1316
implementation Deps.junit4
1417
implementation Deps.googleTruth
15-
}
18+
}
19+
20+
// build a jar with source files
21+
task sourcesJar(type: Jar) {
22+
from sourceSets.main.java.srcDirs
23+
classifier = 'sources'
24+
}
25+
26+
artifacts {
27+
archives sourcesJar
28+
}

0 commit comments

Comments
 (0)