Skip to content

Commit

Permalink
publish updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelReyes committed Oct 28, 2022
1 parent 2f8740a commit e85fca8
Show file tree
Hide file tree
Showing 64 changed files with 495 additions and 348 deletions.
167 changes: 89 additions & 78 deletions CommonCoreLegacy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,115 +7,126 @@ apply plugin: "kotlin-kapt"


android {
compileSdkVersion versions.compileSdkVersion
compileSdkVersion versions.compileSdkVersion

defaultConfig {
minSdkVersion versions.proMinSdkVersion
targetSdkVersion versions.targetSdkVersion
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
defaultConfig {
minSdkVersion versions.proMinSdkVersion
targetSdkVersion versions.targetSdkVersion
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

testOptions {
unitTests {
includeAndroidResources = true
testOptions {
unitTests {
includeAndroidResources = true
}
}
}

buildTypes {
release {
consumerProguardFile 'proguard-rules.pro'
buildTypes {
release {
consumerProguardFile 'proguard-rules.pro'
}
}
}

lintOptions {
checkReleaseBuilds true
abortOnError false
}
lintOptions {
checkReleaseBuilds true
abortOnError false
}
}

dependencies {
androidTestImplementation libs.assertjCore
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestImplementation 'androidx.test:rules:1.1.0'

testImplementation libs.junit
testImplementation libs.assertjCore
testImplementation libs.robolectric
testImplementation 'commons-io:commons-io:2.5'
testImplementation libs.mockitoKotlin
testImplementation libs.mockitoCore
testImplementation libs.jodaTimeTzdb
testImplementation libs.kluent
testImplementation libs.androidxTesting

implementation libs.supportAnnotations
implementation libs.jodaTimeAndroid
implementation libs.rxjava2
implementation libs.rxAndroid2
implementation libs.gson
implementation 'com.github.skedgo:commons-collections:v1.0'

implementation project(':TripKitDomain')
implementation libs.kotlin

kapt libs.value
compileOnly libs.valueAnnotations
compileOnly libs.builderAnnotations
implementation libs.immutablesGson
androidTestImplementation libs.assertjCore
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestImplementation 'androidx.test:rules:1.1.0'

testImplementation libs.junit
testImplementation libs.assertjCore
testImplementation libs.robolectric
testImplementation 'commons-io:commons-io:2.5'
testImplementation libs.mockitoKotlin
testImplementation libs.mockitoCore
testImplementation libs.jodaTimeTzdb
testImplementation libs.kluent
testImplementation libs.androidxTesting

implementation libs.supportAnnotations
implementation libs.jodaTimeAndroid
implementation libs.rxjava2
implementation libs.rxAndroid2
implementation libs.gson
implementation 'com.github.skedgo:commons-collections:v1.0'

implementation project(':TripKitDomain')
implementation libs.kotlin

kapt libs.value
compileOnly libs.valueAnnotations
compileOnly libs.builderAnnotations
implementation libs.immutablesGson
}


// build a jar with source files
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
failOnError false
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile
failOnError false
source = android.sourceSets.main.java.sourceFiles
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile
}

// build a jar with javadoc
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
archives sourcesJar
archives javadocJar
}
group = tripkitGroup
version = tripkitVersion

publishing {
repositories {
maven {
url = "file://${localMaven}"
//url = publishMavenUrl
credentials {
username = publishMavenUsername
password = publishMavenToken
}
repositories {
maven {
url = "file://${localMaven}"
//url = publishMavenUrl
credentials {
username = publishMavenUsername
password = publishMavenToken
}
}
}
}

publications {
mavenAar(MavenPublication) {
groupId = group
version = version
from components.android
pom {
licenses {
license {
name = 'Commercial'
}

publications {
mavenAar(MavenPublication) {
groupId = group
version = version
from components.android
pom {
licenses {
license {
name = 'Commercial'
}
}
}
pom.withXml {
asNode().dependencies.'*'
.findAll() {
(it.scope.text() == 'runtime' || it.scope.text() == 'compile') &&
project.configurations.implementation.allDependencies.find {
dep -> dep.name == it.artifactId.text()
}
}.each {
it.appendNode("type", "aar")
}
}
}
}
}
}
}

12 changes: 11 additions & 1 deletion TripKitAndroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,17 @@ publishing {
name = 'Commercial'
}
}

}
pom.withXml {
asNode().dependencies.'*'
.findAll() {
(it.scope.text() == 'runtime' || it.scope.text() == 'compile') &&
project.configurations.implementation.allDependencies.find {
dep -> dep.name == it.artifactId.text()
}
}.each {
it.appendNode("type", "aar")
}
}
}
}
Expand Down
12 changes: 11 additions & 1 deletion TripKitData/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,17 @@ publishing {
name = 'Commercial'
}
}

}
pom.withXml {
asNode().dependencies.'*'
.findAll() {
(it.scope.text() == 'runtime' || it.scope.text() == 'compile') &&
project.configurations.implementation.allDependencies.find {
dep -> dep.name == it.artifactId.text()
}
}.each {
it.appendNode("type", "aar")
}
}
}
}
Expand Down
12 changes: 11 additions & 1 deletion TripKitDomain/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,17 @@ publishing {
name = 'Commercial'
}
}

}
pom.withXml {
asNode().dependencies.'*'
.findAll() {
(it.scope.text() == 'runtime' || it.scope.text() == 'compile') &&
project.configurations.implementation.allDependencies.find {
dep -> dep.name == it.artifactId.text()
}
}.each {
it.appendNode("type", "aar")
}
}
}
}
Expand Down
11 changes: 11 additions & 0 deletions TripKitDomainLegacy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ publishing {
}
}
}
pom.withXml {
asNode().dependencies.'*'
.findAll() {
(it.scope.text() == 'runtime' || it.scope.text() == 'compile') &&
project.configurations.implementation.allDependencies.find {
dep -> dep.name == it.artifactId.text()
}
}.each {
it.appendNode("type", "aar")
}
}
}
}
}
Expand Down
12 changes: 11 additions & 1 deletion ValidBookingCountData/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,17 @@ publishing {
name = 'Commercial'
}
}

}
pom.withXml {
asNode().dependencies.'*'
.findAll() {
(it.scope.text() == 'runtime' || it.scope.text() == 'compile') &&
project.configurations.implementation.allDependencies.find {
dep -> dep.name == it.artifactId.text()
}
}.each {
it.appendNode("type", "aar")
}
}
}
}
Expand Down
12 changes: 11 additions & 1 deletion ValidBookingCountDomain/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,17 @@ publishing {
name = 'Commercial'
}
}

}
pom.withXml {
asNode().dependencies.'*'
.findAll() {
(it.scope.text() == 'runtime' || it.scope.text() == 'compile') &&
project.configurations.implementation.allDependencies.find {
dep -> dep.name == it.artifactId.text()
}
}.each {
it.appendNode("type", "aar")
}
}
}
}
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit e85fca8

Please sign in to comment.