-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1960 from dhis2/1.8.0-rc-pr
feat: [1.8.0-RC] Version 1.8.0
- Loading branch information
Showing
3,071 changed files
with
27,844 additions
and
16,019 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType | ||
|
||
buildscript { | ||
val kotlinVersion = "1.7.21" | ||
|
||
repositories { | ||
google() | ||
mavenLocal() | ||
mavenCentral() | ||
maven(url = "https://plugins.gradle.org/m2/") | ||
} | ||
|
||
dependencies { | ||
classpath("com.android.tools.build:gradle:7.4.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") | ||
} | ||
} | ||
|
||
plugins { | ||
id("org.sonarqube") version "3.3" | ||
} | ||
|
||
sonarqube { | ||
properties { | ||
val branch = System.getenv("GIT_BRANCH") | ||
val targetBranch = System.getenv("GIT_BRANCH_DEST") | ||
val pullRequestId = System.getenv("PULL_REQUEST") | ||
|
||
property("sonar.projectKey", "dhis2_dhis2-android-sdk") | ||
property("sonar.organization", "dhis2") | ||
property("sonar.host.url", "https://sonarcloud.io") | ||
property("sonar.projectName", "dhis2-android-sdk") | ||
|
||
if (pullRequestId == null) { | ||
property("sonar.branch.name", branch) | ||
} else { | ||
property("sonar.pullrequest.base", targetBranch) | ||
property("sonar.pullrequest.branch", branch) | ||
property("sonar.pullrequest.key", pullRequestId) | ||
} | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
maven(url = "https://maven.google.com") | ||
maven(url = "https://oss.sonatype.org/content/repositories/snapshots") | ||
google() | ||
mavenCentral() | ||
maven(url = "https://maven.pkg.jetbrains.space/public/p/kotlinx-html/maven") | ||
maven(url = "https://jitpack.io") | ||
} | ||
} | ||
|
||
tasks.register("clean", Delete::class) { | ||
delete(rootProject.buildDir) | ||
} | ||
|
||
|
||
subprojects { | ||
apply(plugin = "org.jlleitschuh.gradle.ktlint") | ||
|
||
//group = GROUP | ||
//version = VERSION_NAME | ||
|
||
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> { | ||
version.set("0.45.2") | ||
android.set(true) | ||
outputColorName.set("RED") | ||
reporters { | ||
reporter(ReporterType.PLAIN) | ||
reporter(ReporterType.CHECKSTYLE) | ||
} | ||
} | ||
} |
Oops, something went wrong.