mirror of
https://github.com/Prominence/openweathermap-java-api.git
synced 2026-01-11 04:16:44 +03:00
Compare commits
5 Commits
d1bac609e8
...
5ca31780da
| Author | SHA1 | Date | |
|---|---|---|---|
| 5ca31780da | |||
| 91a5acdb43 | |||
| 3f5b7f6649 | |||
| 9c2a127703 | |||
| e6833c3007 |
@ -1,13 +1,13 @@
|
|||||||
container:
|
container:
|
||||||
image: gradle:jdk11
|
image: gradle:jdk17
|
||||||
|
|
||||||
check_task:
|
testCoverage_task:
|
||||||
gradle_cache:
|
gradle_cache:
|
||||||
folder: ~/.gradle/caches
|
folder: ~/.gradle/caches
|
||||||
check_script: gradle check
|
testCoverage_script: gradle jacocoTestReport && bash <(curl -s https://codecov.io/bash)
|
||||||
cleanup_before_cache_script:
|
cleanup_before_cache_script:
|
||||||
- rm -rf ~/.gradle/caches/$GRADLE_VERSION/
|
- rm -rf ~/.gradle/caches/$GRADLE_VERSION/
|
||||||
- rm -rf ~/.gradle/caches/transforms-1
|
- rm -rf ~/.gradle/caches/transforms-1
|
||||||
- rm -rf ~/.gradle/caches/journal-1
|
- rm -rf ~/.gradle/caches/journal-1
|
||||||
- rm -rf ~/.gradle/caches/jars-3/*/buildSrc.jar
|
- rm -rf ~/.gradle/caches/jars-3/*/buildSrc.jar
|
||||||
- find ~/.gradle/caches/ -name "*.lock" -type f -delete
|
- find ~/.gradle/caches/ -name "*.lock" -type f -delete
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# OpenWeatherMap Java API [![Build Status][ci-shield]][ci-link] [![codecov][codecov-shield]][codecov-link]
|
# OpenWeatherMap Java API [![Build Status][ci-shield]][ci-link] [![codecov][codecov-shield]][codecov-link] [![FOSSA Status][FOSSA-shield]][FOSSA-link]
|
||||||
Java API for OpenWeatherMap services.
|
Java API for OpenWeatherMap services.
|
||||||
|
|
||||||
### Implemented features:
|
### Implemented features:
|
||||||
@ -86,9 +86,12 @@ repositories {
|
|||||||
### License
|
### License
|
||||||
MIT
|
MIT
|
||||||
|
|
||||||
[ci-shield]: https://travis-ci.org/Prominence/openweathermap-java-api.svg?branch=dev
|
[ci-shield]: https://api.cirrus-ci.com/github/Prominence/openweathermap-java-api.svg?branch=dev
|
||||||
[ci-link]: https://travis-ci.org/Prominence/openweathermap-java-api
|
[ci-link]: https://api.cirrus-ci.com/github/Prominence/openweathermap-java-api
|
||||||
|
|
||||||
|
|
||||||
[codecov-shield]: https://codecov.io/gh/Prominence/openweathermap-java-api/branch/dev/graph/badge.svg
|
[codecov-shield]: https://codecov.io/gh/Prominence/openweathermap-java-api/branch/dev/graph/badge.svg
|
||||||
[codecov-link]: https://codecov.io/gh/Prominence/openweathermap-java-api
|
[codecov-link]: https://codecov.io/gh/Prominence/openweathermap-java-api
|
||||||
|
|
||||||
|
[FOSSA-shield]: https://app.fossa.com/api/projects/git%2Bgithub.com%2FProminence%2Fopenweathermap-java-api.svg?type=shield
|
||||||
|
[FOSSA-link]: https://app.fossa.com/projects/git%2Bgithub.com%2FProminence%2Fopenweathermap-java-api?ref=badge_shield
|
||||||
|
|||||||
18
build.gradle
18
build.gradle
@ -2,6 +2,7 @@ plugins {
|
|||||||
id 'java-library'
|
id 'java-library'
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
id 'signing'
|
id 'signing'
|
||||||
|
id 'jacoco'
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@ -21,7 +22,7 @@ dependencies {
|
|||||||
group = 'com.github.prominence'
|
group = 'com.github.prominence'
|
||||||
version = '3.0.0-SNAPSHOT'
|
version = '3.0.0-SNAPSHOT'
|
||||||
description = 'Java OpenWeatherMap API'
|
description = 'Java OpenWeatherMap API'
|
||||||
java.sourceCompatibility = JavaVersion.VERSION_11
|
java.sourceCompatibility = JavaVersion.VERSION_17
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
isReleaseVersion = !version.endsWith("SNAPSHOT")
|
isReleaseVersion = !version.endsWith("SNAPSHOT")
|
||||||
@ -32,6 +33,10 @@ java {
|
|||||||
withJavadocJar()
|
withJavadocJar()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test {
|
||||||
|
useJUnitPlatform()
|
||||||
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
mavenJava(MavenPublication) {
|
mavenJava(MavenPublication) {
|
||||||
@ -94,3 +99,14 @@ tasks.withType(JavaCompile) {
|
|||||||
tasks.withType(GenerateModuleMetadata) {
|
tasks.withType(GenerateModuleMetadata) {
|
||||||
enabled = false
|
enabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
jacocoTestReport {
|
||||||
|
dependsOn test // tests are required to run before generating the report
|
||||||
|
reports {
|
||||||
|
csv.required = false
|
||||||
|
xml.enabled true
|
||||||
|
xml.destination file("${buildDir}/reports/jacoco/report.xml")
|
||||||
|
html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user