Skip to content

Commit

Permalink
Merge pull request #2074 from dhis2/version-1.9.0
Browse files Browse the repository at this point in the history
feat: [1.9.0] Version 1.9.0
  • Loading branch information
vgarciabnz authored Nov 22, 2023
2 parents 6f1cd6e + ebd662e commit 2cd5a13
Show file tree
Hide file tree
Showing 2,630 changed files with 58,095 additions and 59,253 deletions.
4 changes: 3 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[*.{kt,kts}]
max_line_length = 120
disabled_rules=no-wildcard-imports
ktlint_standard_no-wildcard-imports = disabled
ktlint_standard_package-name = disabled
ktlint_standard_no-unit-return = disabled
2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ pipeline {
}

stages{
stage('Change to JAVA 17') {
steps {
script {
echo 'Changing JAVA version to 17'
sh 'sudo update-alternatives --set java /usr/lib/jvm/java-17-openjdk-amd64/bin/java'
env.JAVA_HOME = '/usr/lib/jvm/java-17-openjdk-amd64'
}
}
}
stage('Checks') {
steps {
script {
Expand Down
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType

buildscript {
val kotlinVersion = "1.7.21"
val kotlinVersion = "1.9.10"

repositories {
google()
Expand All @@ -11,10 +11,10 @@ buildscript {
}

dependencies {
classpath("com.android.tools.build:gradle:7.4.1")
classpath("com.android.tools.build:gradle:8.1.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
classpath("org.jlleitschuh.gradle:ktlint-gradle:11.0.0")
classpath("org.jacoco:org.jacoco.core:0.8.8")
classpath("org.jlleitschuh.gradle:ktlint-gradle:11.5.1")
classpath("org.jacoco:org.jacoco.core:0.8.10")
}
}

Expand Down Expand Up @@ -66,7 +66,7 @@ subprojects {
//version = VERSION_NAME

configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
version.set("0.45.2")
version.set("0.50.0")
android.set(true)
outputColorName.set("RED")
reporters {
Expand Down
36 changes: 22 additions & 14 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,43 +28,43 @@

plugins {
id("com.android.library")
id("com.google.devtools.ksp") version "1.9.10-1.0.13"
id("kotlin-android")
id("kotlin-kapt")
id("io.gitlab.arturbosch.detekt") version "1.21.0"
id("org.jetbrains.dokka") version "1.7.20" apply false
id("org.jetbrains.dokka") version "1.8.20" apply false
}

apply(from = project.file("plugins/android-checkstyle.gradle"))
apply(from = project.file("plugins/android-pmd.gradle"))
apply(from = project.file("plugins/jacoco.gradle"))
apply(from = project.file("plugins/jacoco.gradle.kts"))
apply(from = project.file("plugins/gradle-mvn-push.gradle"))

repositories {
mavenCentral()
maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
}

val _targetSdkVersion = 33
val _targetSdkVersion = 34
val _minSdkVersion = 21
val VERSION_CODE: String by project
val VERSION_NAME: String by project

/*
** Libraries
*/
val libraryDesugaring = "1.2.2"
val libraryDesugaring = "2.0.3"

// android
val annotation = "1.4.0"
val annotation = "1.6.0"
val paging = "2.1.2"

// java
val jackson = "2.13.4"
val autoValue = "1.10.1"
val autoValue = "1.10.2"
val autoValueCursor = "2.0.1"
val retrofit = "2.9.0"
val okHttp = "3.14.9"
val dagger = "2.44.2"
val okHttp = "4.10.0"
val rxJava = "2.2.21"
val rxAndroid = "2.1.1"
val sqlCipher = "4.4.3"
Expand All @@ -74,6 +74,8 @@ val expressionParser = "1.0.33"
// Kotlin
val kotlinxDatetime = "0.4.0"
val coroutines = "1.6.4"
val koin = "3.5.0"
val koinKsp = "1.3.0"

// test dependencies
val coreTesting = "2.2.0"
Expand Down Expand Up @@ -108,11 +110,11 @@ android {
compileOptions {
isCoreLibraryDesugaringEnabled = true

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

packagingOptions {
packaging {
resources {
excludes += listOf("META-INF/LICENSE", "META-INF/rxjava.properties")
}
Expand All @@ -126,6 +128,9 @@ android {
}

sourceSets {
sourceSets.getByName("main") {
java.srcDirs("build/generated/ksp/main/kotlin")
}
sourceSets.getByName("test") {
resources.srcDirs("src/sharedTest/resources")
}
Expand Down Expand Up @@ -165,9 +170,10 @@ dependencies {
api("com.google.auto.value:auto-value-annotations:$autoValue")
kapt("com.google.auto.value:auto-value:$autoValue")

// Dagger
api("com.google.dagger:dagger:$dagger")
kapt("com.google.dagger:dagger-compiler:$dagger")
// Koin
implementation("io.insert-koin:koin-core:$koin")
implementation("io.insert-koin:koin-annotations:$koinKsp")
ksp("io.insert-koin:koin-ksp-compiler:$koinKsp")

// Jackson
api("com.fasterxml.jackson.core:jackson-databind:$jackson")
Expand Down Expand Up @@ -209,6 +215,7 @@ dependencies {
testImplementation("nl.jqno.equalsverifier:equalsverifier:$equalsVerifier")
testImplementation("com.squareup.okhttp3:mockwebserver:$okHttp")
testImplementation("androidx.test:runner:$testRunner")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines")

// Android test dependencies
androidTestImplementation("org.mockito:mockito-core:$mockito")
Expand All @@ -220,6 +227,7 @@ dependencies {
androidTestImplementation("com.google.truth:truth:$truth") {
exclude(group = "junit") // Android has JUnit built in.
}
androidTestImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines")

debugImplementation("com.facebook.flipper:flipper:$flipper")
debugImplementation("com.facebook.soloader:soloader:$soloader")
Expand Down
4 changes: 2 additions & 2 deletions core/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
# Properties which are consumed by plugins/gradle-mvn-push.gradle plugin.
# They are used for publishing artifact to snapshot repository.

VERSION_NAME=1.8.2
VERSION_CODE=283
VERSION_NAME=1.9.0
VERSION_CODE=290

GROUP=org.hisp.dhis

Expand Down
4 changes: 2 additions & 2 deletions core/plugins/android-pmd.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ afterEvaluate {
ignoreFailures = false

reports {
html.enabled = true
xml.enabled = true
xml.required.set(true)
html.required.set(true)
}

ruleSetFiles = project.files(
Expand Down
7 changes: 1 addition & 6 deletions core/plugins/gradle-mvn-push.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ gradle.taskGraph.whenReady { taskGraph ->
}

tasks.named("dokkaJavadoc") {
dependsOn("kaptReleaseKotlin")
outputDirectory = file("$buildDir/dokkaJavadoc")

dokkaSourceSets {
Expand All @@ -79,11 +80,6 @@ task androidJavadocsJar(type: Jar, dependsOn: dokkaJavadoc) {
from dokkaJavadoc.outputDirectory
}

task androidSourcesJar(type: Jar) {
archiveClassifier.set('sources')
from android.sourceSets.main.java.srcDirs
}

afterEvaluate {
publishing {
publications {
Expand All @@ -92,7 +88,6 @@ afterEvaluate {

// Artifacts
artifact androidJavadocsJar
artifact androidSourcesJar

groupId = GROUP
artifactId = POM_ARTIFACT_ID
Expand Down
114 changes: 0 additions & 114 deletions core/plugins/jacoco.gradle

This file was deleted.

Loading

0 comments on commit 2cd5a13

Please sign in to comment.