Skip to content

Commit

Permalink
Migrated to th2 gradle plugin and Kotlin DSL
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro committed Mar 20, 2024
1 parent 4372d17 commit af8d633
Show file tree
Hide file tree
Showing 13 changed files with 163 additions and 478 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
sonatypeSigningKey: ${{ secrets.SONATYPE_GPG_ARMORED_KEY }}
sonatypeSigningPassword: ${{ secrets.SONATYPE_SIGNING_PASSWORD }}
nvd-api-key: ${{ secrets.NVD_APIKEY }}
build-and-publish-grpc-python:
name: Build and publish Python distributions to PyPI
needs:
Expand All @@ -75,6 +76,7 @@ jobs:
sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
sonatypeSigningKey: ${{ secrets.SONATYPE_GPG_ARMORED_KEY }}
sonatypeSigningPassword: ${{ secrets.SONATYPE_SIGNING_PASSWORD }}
nvd-api-key: ${{ secrets.NVD_APIKEY }}
owasp-scan:
needs:
- build-and-publish-core-java
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
sonatypeSigningKey: ${{ secrets.SONATYPE_GPG_ARMORED_KEY }}
sonatypeSigningPassword: ${{ secrets.SONATYPE_SIGNING_PASSWORD }}
nvd-api-key: ${{ secrets.NVD_APIKEY }}
build-and-publish-grpc-python:
name: Build and publish Python distributions to PyPI
needs:
Expand All @@ -54,6 +55,7 @@ jobs:
sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
sonatypeSigningKey: ${{ secrets.SONATYPE_GPG_ARMORED_KEY }}
sonatypeSigningPassword: ${{ secrets.SONATYPE_SIGNING_PASSWORD }}
nvd-api-key: ${{ secrets.NVD_APIKEY }}
owasp-scan:
needs:
- build-and-publish-core-java
Expand Down
68 changes: 0 additions & 68 deletions app/build.gradle

This file was deleted.

33 changes: 33 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
plugins {
id("application")
id("com.exactpro.th2.gradle.component")
}

configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, "seconds")
resolutionStrategy.cacheDynamicVersionsFor(0, "seconds")
}

dependencies {
implementation(project(":read-db-core"))

//region Drivers
runtimeOnly("org.postgresql:postgresql:42.6.0") {
because("prostresql support")
}
runtimeOnly("com.mysql:mysql-connector-j:8.1.0") {
because("mysql support")
}
runtimeOnly("com.oracle.database.jdbc:ojdbc11:23.2.0.0") {
because("oracle support")
}
runtimeOnly("com.microsoft.sqlserver:mssql-jdbc:12.4.0.jre11") {
because("mssql support")
}
//endregion
}

application {
applicationName = "service"
mainClass.set("com.exactpro.th2.read.db.bootstrap.Main")
}
63 changes: 0 additions & 63 deletions build.gradle

This file was deleted.

17 changes: 17 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
plugins {
kotlin("jvm") version "1.8.22" apply false
id("com.google.protobuf") version "0.9.3" apply false
id("com.exactpro.th2.gradle.grpc") version "0.0.3" apply false
id("com.exactpro.th2.gradle.base") version "0.0.3"
id("com.exactpro.th2.gradle.publish") version "0.0.3"
id("com.exactpro.th2.gradle.component") version "0.0.3" apply false
}

allprojects {
group = "com.exactpro.th2"
version = project.findProperty("release_version") as String
val suffix = project.findProperty("version_suffix") as String
if (suffix.isNotEmpty()) {
version = "$version-$suffix"
}
}
10 changes: 0 additions & 10 deletions common.gradle

This file was deleted.

135 changes: 0 additions & 135 deletions core/build.gradle

This file was deleted.

Loading

0 comments on commit af8d633

Please sign in to comment.