-
Notifications
You must be signed in to change notification settings - Fork 90
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 #1415 from MikeEdgar/issue-1300
Update Gradle Plugin build for publishing
- Loading branch information
Showing
5 changed files
with
80 additions
and
66 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
plugins { | ||
id 'java-gradle-plugin' | ||
id("com.gradle.plugin-publish") version "1.1.0" | ||
id("com.github.vlsi.jandex") version "1.87" | ||
} | ||
|
||
group = "io.smallrye" | ||
|
||
if (JavaVersion.current().isJava9Compatible()) { | ||
compileJava.options.compilerArgs.addAll(['--release', '8']) | ||
} | ||
|
||
compileJava { | ||
options.encoding = 'UTF-8' | ||
sourceCompatibility = '1.8' | ||
targetCompatibility = '1.8' | ||
} | ||
|
||
compileTestJava { | ||
options.encoding = 'UTF-8' | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
maven { | ||
url = uri("file:./target/dependencies") | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation("io.smallrye:smallrye-open-api-core:${version}") | ||
implementation("io.smallrye:smallrye-open-api-jaxrs:${version}") | ||
implementation("io.smallrye:smallrye-open-api-spring:${version}") | ||
implementation("io.smallrye:smallrye-open-api-vertx:${version}") | ||
implementation("io.smallrye.config:smallrye-config:${versionConfig}") | ||
|
||
testImplementation("org.junit.jupiter:junit-jupiter:${versionJunit5}") | ||
testImplementation(gradleTestKit()) | ||
testImplementation("org.assertj:assertj-core:3.24.2") | ||
testImplementation("com.fasterxml.jackson.core:jackson-databind:${versionJackson}") | ||
} | ||
|
||
test { | ||
testLogging { | ||
events "passed", "skipped", "failed" | ||
} | ||
useJUnitPlatform() | ||
// multiple Gradle invocations executed from the same testing JVM cause problems, so fork | ||
// for each test, and make sure we only run one Gradle execution in each test | ||
forkEvery 1 | ||
} | ||
|
||
gradlePlugin { | ||
website = 'https://github.com/smallrye/smallrye-open-api/' | ||
vcsUrl = 'https://github.com/smallrye/smallrye-open-api/' | ||
plugins { | ||
smallryeOpenAPIPlugin { | ||
id = 'io.smallrye.openapi' | ||
implementationClass = 'io.smallrye.openapi.gradleplugin.SmallryeOpenApiPlugin' | ||
description = 'SmallRye: MicroProfile OpenAPI Gradle Plugin' | ||
displayName = 'SmallRye: MicroProfile OpenAPI Gradle Plugin' | ||
description = 'SmallRye: MicroProfile GraphQL Gradle Plugin' | ||
tags.set([ 'smallrye', 'openapi', 'microprofile' ]) | ||
} | ||
} | ||
} | ||
|
||
wrapper { | ||
distributionType = Wrapper.DistributionType.ALL | ||
} | ||
|
||
tasks.pluginUnderTestMetadata.dependsOn(processJandexIndex) |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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