Skip to content

Commit 519dedb

Browse files
author
bnasslahsen
committed
project update
1 parent 3c10bc8 commit 519dedb

File tree

2 files changed

+53
-49
lines changed

2 files changed

+53
-49
lines changed

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ addons:
1313
secure: "m8Q4W1ZyUuzcfoCPu+7Q2SSTpiReHiK1MnUhl6wW6t3RwasD/s0c9pn1q6ZtSRpYBzFKzWxfdALV06vOFrfbTUlMhzWJnNFEdvF/ApEiRtfd0eOJYXZ219R9Wi2JsCvJd7GP9p56KwiUkbHU5zU4dPkFeYf8wPs8xwqepukb0vzTn5/EfQgpQST2nMvXi3dWUmZZl70Wokug9A5Xe4yiIf7AbrvEcXcveq0i4vsPFiPUyec6OYpKAi0cAa+qlIlkuz6YIgEMvlU2KpYqgJShO3EByU7tDkTOg500VzUylkGHMFYrrS5fdZmNSULJgVMzCleibKPWzbhZkftdy7S360mEMNWOIFkQnqCWA2wgQgXryltr3gQeb+gD85R8qtiNnwxEe5ctoOiw/VWAq40zgL+0v4qzmVDfAGuhGrVUhfKIlUu4h7tK0kkT1fqAhQBz1bwa3otQkRL88/63VKQE151lmx+65dnb7HwPDYxVSMsbIN7AdczEhqaIQh2tGWj8BvQgMpAIb5a8DkdLTD+3XtQEbj1OgJ/r67sHzE5aGu1A5N3fTDNx7RiyfbFQKWhmxraZfMJOpMqDx6l+yZlzS1yzyFBpc1EPsInG6kFWyjeQKk3S3ZOx3vTZtuFmyPS/dAgjdkOjn0Gbp0/oBlEnZjA2N/twvIhZUTUJ/Mk7j3w=" # encrypted value of your token
1414

1515
script:
16-
- ./gradlew -S clean build sonarqube
16+
- ./gradlew -S clean build publish -x test
1717

1818
before_cache:
1919
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock

Diff for: build.gradle.kts

+52-48
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,78 @@
11
plugins {
2-
`java-gradle-plugin`
3-
id("com.gradle.plugin-publish") version "0.11.0"
4-
id("org.sonarqube") version "2.8"
5-
kotlin("jvm") version "1.3.70"
6-
`maven-publish`
2+
`java-gradle-plugin`
3+
id("com.gradle.plugin-publish") version "0.11.0"
4+
id("org.sonarqube") version "2.8"
5+
kotlin("jvm") version "1.3.70"
6+
`maven-publish`
77
}
88

99
group = "org.springdoc"
1010
version = "1.3.1-SNAPSHOT"
1111

1212
sonarqube {
13-
properties {
14-
property("sonar.projectKey", "springdoc_springdoc-openapi-gradle-plugin")
15-
}
13+
properties {
14+
property("sonar.projectKey", "springdoc_springdoc-openapi-gradle-plugin")
15+
}
1616
}
1717
repositories {
18-
mavenCentral()
19-
maven {
20-
name = "Spring Repositories"
21-
url = uri("https://repo.spring.io/libs-release/")
22-
}
23-
gradlePluginPortal()
18+
mavenCentral()
19+
maven {
20+
name = "Spring Repositories"
21+
url = uri("https://repo.spring.io/libs-release/")
22+
}
23+
gradlePluginPortal()
2424
}
2525

2626
publishing {
27-
repositories {
28-
if (project.hasProperty("localFileRepo")) {
29-
maven {
30-
name = "File-Based-Local-Repository"
31-
url = uri("file://${property("localFileRepo")}")
32-
}
33-
}
34-
}
27+
repositories {
28+
maven {
29+
// change URLs to point to your repos, e.g. http://my.org/repo
30+
val releasesRepoUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
31+
val snapshotsRepoUrl = uri("https://oss.sonatype.org/content/repositories/snapshots")
32+
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
33+
credentials {
34+
username = System.getenv("OSSRH_USER")
35+
password = System.getenv("OSSRH_PASS")
36+
}
37+
}
38+
}
3539
}
3640

3741
dependencies {
38-
implementation(kotlin("stdlib-jdk8"))
39-
implementation(kotlin("reflect"))
40-
implementation(group = "khttp", name = "khttp", version = "1.0.0")
41-
implementation(group = "com.google.code.gson", name = "gson", version = "2.8.6")
42-
implementation(group = "org.awaitility", name = "awaitility-kotlin", version = "4.0.2")
43-
implementation(files("$projectDir/libs/gradle-processes-0.5.0.jar"))
42+
implementation(kotlin("stdlib-jdk8"))
43+
implementation(kotlin("reflect"))
44+
implementation(group = "khttp", name = "khttp", version = "1.0.0")
45+
implementation(group = "com.google.code.gson", name = "gson", version = "2.8.6")
46+
implementation(group = "org.awaitility", name = "awaitility-kotlin", version = "4.0.2")
47+
implementation(files("$projectDir/libs/gradle-processes-0.5.0.jar"))
4448

45-
testImplementation(gradleTestKit())
46-
testImplementation("junit:junit:4.13")
47-
testImplementation("com.beust:klaxon:5.2")
49+
testImplementation(gradleTestKit())
50+
testImplementation("junit:junit:4.13")
51+
testImplementation("com.beust:klaxon:5.2")
4852
}
4953

5054
gradlePlugin {
51-
plugins {
52-
create("springdoc-gradle-plugin") {
53-
id = "org.springdoc.openapi-gradle-plugin"
54-
displayName = "A Gradle plugin for the springdoc-openapi library"
55-
description = " This plugin uses springdoc-openapi to generate an OpenAPI description at build time"
56-
implementationClass = "org.springdoc.openapi.gradle.plugin.OpenApiGradlePlugin"
57-
}
58-
}
55+
plugins {
56+
create("springdoc-gradle-plugin") {
57+
id = "org.springdoc.openapi-gradle-plugin"
58+
displayName = "A Gradle plugin for the springdoc-openapi library"
59+
description = " This plugin uses springdoc-openapi to generate an OpenAPI description at build time"
60+
implementationClass = "org.springdoc.openapi.gradle.plugin.OpenApiGradlePlugin"
61+
}
62+
}
5963
}
6064

6165
pluginBundle {
62-
website = "https://github.com/springdoc/springdoc-openapi-gradle-plugin"
63-
vcsUrl = "https://github.com/springdoc/springdoc-openapi-gradle-plugin.git"
64-
tags = listOf("springdoc", "openapi", "swagger")
66+
website = "https://github.com/springdoc/springdoc-openapi-gradle-plugin"
67+
vcsUrl = "https://github.com/springdoc/springdoc-openapi-gradle-plugin.git"
68+
tags = listOf("springdoc", "openapi", "swagger")
6569
}
6670

6771
tasks {
68-
compileKotlin {
69-
kotlinOptions.jvmTarget = "1.8"
70-
}
71-
compileTestKotlin {
72-
kotlinOptions.jvmTarget = "1.8"
73-
}
72+
compileKotlin {
73+
kotlinOptions.jvmTarget = "1.8"
74+
}
75+
compileTestKotlin {
76+
kotlinOptions.jvmTarget = "1.8"
77+
}
7478
}

0 commit comments

Comments
 (0)