Skip to content

Commit

Permalink
chore: bump version
Browse files Browse the repository at this point in the history
update to kotlin-based gradle

Signed-off-by: Stephane Bouchet <[email protected]>
  • Loading branch information
sbouchet committed Dec 16, 2024
1 parent cbcdac7 commit a94c6cd
Show file tree
Hide file tree
Showing 13 changed files with 298 additions and 230 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

version: 2
updates:
# Updates for Github Actions
# Updates for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env groovy

node('rhel7') {
node('rhel9') {
def javaHome = tool 'openjdk-17'
env.JAVA_HOME = "${javaHome}"

Expand Down
103 changes: 0 additions & 103 deletions build.gradle

This file was deleted.

96 changes: 96 additions & 0 deletions build.gradle.kts
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"]
}
}
}
5 changes: 4 additions & 1 deletion gradle.properties
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
19 changes: 19 additions & 0 deletions gradle/libs.versions.toml
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 modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
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
Loading

0 comments on commit a94c6cd

Please sign in to comment.