Skip to content

Commit f2362b5

Browse files
committed
Include KotlinStdLib in pom.xml to used this library on JavaProject
1 parent 6570a6d commit f2362b5

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apply from: 'dependencies.gradle'
33

44
buildscript {
5-
ext.kotlin_version = '1.3.31'
5+
ext.kotlin_version = '1.3.40'
66
repositories {
77
google()
88
jcenter()

circularimageview/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ publishing {
4444
groupId libGroupId
4545
artifactId libArtifactId
4646
version libVersion
47+
48+
pom.withXml {
49+
def dependenciesNode = asNode().appendNode('dependencies')
50+
// Add KotlinStdlib
51+
def kotlinStdlibDepNode = dependenciesNode.appendNode('dependency')
52+
kotlinStdlibDepNode.appendNode('groupId', kotlinStdlibGroupId)
53+
kotlinStdlibDepNode.appendNode('artifactId', kotlinStdlibArtifactId)
54+
kotlinStdlibDepNode.appendNode('version', kotlinStdlibVersion)
55+
}
56+
4757
artifact(sourceJar)
4858
artifact("$buildDir/outputs/aar/$libArtifactId-release.aar")
4959
}

dependencies.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@ allprojects {
77

88
ext {
99
// APP VERSION
10-
androidVersionCode = 13
11-
androidVersionName = "4.0.0"
10+
androidVersionCode = 14
11+
androidVersionName = "4.0.1"
1212

1313
// ANDROID VERSION
1414
androidCompileSdkVersion = 28
1515
androidMinSdkVersion = 14
1616
androidTargetSdkVersion = 28
1717

1818
// KOTLIN
19-
kotlinStdlib = "org.jetbrains.kotlin:kotlin-stdlib:${ext.kotlin_version}"
19+
kotlinStdlibGroupId = "org.jetbrains.kotlin"
20+
kotlinStdlibArtifactId = "kotlin-stdlib"
21+
kotlinStdlibVersion = ext.kotlin_version
22+
kotlinStdlib = "$kotlinStdlibGroupId:$kotlinStdlibArtifactId:$kotlinStdlibVersion"
2023

2124
// ANDROID LIB
2225
androidAppCompatXVersion = '1.0.2'

0 commit comments

Comments
 (0)