-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to kotlin-based gradle Signed-off-by: Stephane Bouchet <[email protected]>
- Loading branch information
Showing
13 changed files
with
298 additions
and
230 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
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,96 @@ | ||
plugins { | ||
id("java-library") | ||
id("maven-publish") | ||
alias(libs.plugins.gradleNexusPublishPlugin) | ||
alias(libs.plugins.sonarqube) // SonarQube | ||
} | ||
|
||
group = "com.redhat.devtools.intellij" | ||
version = providers.gradleProperty("projectVersion").get() // Plugin version | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
maven { | ||
url = uri("https://packages.jetbrains.team/maven/p/ij/intellij-dependencies") | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(libs.kotlin.reflect) | ||
api(libs.junit.jupiter.api) | ||
api(libs.remote.robot) | ||
api(libs.remote.fixtures) | ||
} | ||
|
||
|
||
java { | ||
withSourcesJar() | ||
withJavadocJar() | ||
} | ||
|
||
tasks { | ||
wrapper { | ||
gradleVersion = providers.gradleProperty("gradleVersion").get() | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} | ||
|
||
sonar { | ||
properties { | ||
property("sonar.projectKey", "redhat-developer_intellij-common-ui-test-library") | ||
property("sonar.organization", "redhat-developer") | ||
property("sonar.host.url", "https://sonarcloud.io") | ||
property("sonar.sources", "src") | ||
//property("sonar.gradle.skipCompile", "true") | ||
} | ||
} | ||
|
||
} | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("mavenJava") { | ||
from(components["java"]) | ||
artifact(tasks.named("sourcesJar")) | ||
artifact(tasks.named("javadocJar")) | ||
pom { | ||
name.set("IntelliJ common UI test library") | ||
description.set("Common utilities for IntelliJ UI testing") | ||
url.set("https://github.com/redhat-developer/intellij-common-ui-test-library") | ||
|
||
licenses { | ||
license { | ||
name.set("Eclipse Public License 2.0") | ||
url.set("https://www.eclipse.org/legal/epl-v20.html") | ||
} | ||
} | ||
developers { | ||
developer { | ||
name.set("Red Hat Developer") | ||
email.set("[email protected]") | ||
} | ||
} | ||
scm { | ||
connection.set("scm:git:git://github.com/redhat-developer/intellij-common-ui-test-library.git") | ||
developerConnection.set("scm:git:ssh://[email protected]:redhat-developer/intellij-common-ui-test-library.git") | ||
url.set("https://github.com/redhat-developer/intellij-common-ui-test-library/") | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
nexusPublishing { | ||
packageGroup.set("JBoss Releases Staging Profile") | ||
repositories { | ||
create("jbossNexus") { | ||
nexusUrl.set(uri("https://repository.jboss.org/nexus/service/local/")) | ||
snapshotRepositoryUrl.set(uri("https://repository.jboss.org/nexus/content/repositories/snapshots/")) | ||
username.set(project.properties["nexusUser"].toString()) // defaults to project.properties["myNexusUsername"] | ||
password.set(project.properties["nexusPassword"].toString()) // defaults to project.properties["myNexusPassword"] | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
projectVersion=0.4.3 | ||
projectVersion=0.4.4-SNAPSHOT | ||
nexusUser=invalid | ||
nexusPassword=invalid | ||
|
||
# Gradle Releases -> https://github.com/gradle/gradle/releases | ||
gradleVersion=8.5 |
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,19 @@ | ||
[versions] | ||
# libraries | ||
remote-robot = "0.11.22" | ||
kotlin = "2.1.0" | ||
junit-jupiter = "5.11.3" | ||
|
||
# plugins | ||
gradleNexusPublishPlugin = "2.0.0" | ||
sonarqube = "5.1.0.4882" | ||
|
||
[libraries] | ||
kotlin-reflect = { group = "org.jetbrains.kotlin", name = "kotlin-reflect", version.ref = "kotlin" } | ||
junit-jupiter-api = { group = "org.junit.jupiter", name = "junit-jupiter-api", version.ref = "junit-jupiter" } | ||
remote-robot = { group = "com.intellij.remoterobot", name = "remote-robot", version.ref = "remote-robot" } | ||
remote-fixtures = { group = "com.intellij.remoterobot", name = "remote-fixtures", version.ref = "remote-robot" } | ||
|
||
[plugins] | ||
gradleNexusPublishPlugin = { id = "io.github.gradle-nexus.publish-plugin", version.ref = "gradleNexusPublishPlugin" } | ||
sonarqube = { id = "org.sonarqube", version.ref = "sonarqube" } |
Binary file not shown.
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.