Skip to content

Commit

Permalink
Migrated to th2 gradle plugin: 0.0.6 (#99)
Browse files Browse the repository at this point in the history
* migrated to release version codec-sailfish:5.1.0-dev
  • Loading branch information
Nikita-Smirnov-Exactpro authored May 2, 2024
1 parent 7d0c064 commit 0256b76
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 67 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# General codecs (5.0.0)
# General codecs (5.1.0)

This repository contains the build scripts for general codecs:
+ [fix](codec-fix/README.md)
Expand All @@ -14,6 +14,14 @@ _Do not specify default parameters if you don't want to override them_ (just bec

# Changes

### 5.1.0

+ Migrated to th2 gradle plugin: `0.0.6`
+ Updated:
+ bom: `4.6.1`
+ codec-sailfish: `5.1.0-dev`
+ sailfish: `3.3.202`

### 5.0.0

+ Update codec-sailfish: `5.0.0`
Expand Down
70 changes: 6 additions & 64 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
import com.github.jk1.license.filter.LicenseBundleNormalizer
import com.github.jk1.license.render.JsonReportRenderer

plugins {
id 'com.palantir.docker' version '0.25.0' apply false
id 'application'
id "org.owasp.dependencycheck" version "8.3.1"
id 'com.github.jk1.dependency-license-report' version '2.5'
id "de.undercouch.download" version "5.4.0"
id "com.exactpro.th2.gradle.base" version "0.0.6"
id "com.exactpro.th2.gradle.component" version "0.0.6" apply false
}

subprojects {
apply plugin: 'java'
apply plugin: 'com.palantir.docker'
apply plugin: 'com.exactpro.th2.gradle.component'
apply plugin: 'application'

ext {
resourceDir = "src/main/resources"

baseSailfishVersion = '3.3'
sailfishVersion = "3.3.169"
sailfishVersion = "3.3.202"

dockerCodecImplementationDir = 'codec_implementation'
}
Expand Down Expand Up @@ -79,7 +73,6 @@ subprojects {
}

dependencies {
implementation (platform("com.exactpro.th2:bom:4.5.0"))
implementation("com.exactpro.sf:${sf_service_name}:${sailfishVersion}") {
exclude module: 'sailfish-core'
exclude module: 'sailfish-common'
Expand All @@ -89,65 +82,14 @@ subprojects {
exclude module: 'kotlin-stdlib'
exclude module: 'kotlin-stdlib-common'
}
implementation 'com.exactpro.th2:codec-sailfish:5.0.0-dev'
}

jar {
manifest {
attributes(
'Created-By': "${System.getProperty('java.version')} (${System.getProperty('java.vendor')})",
'Specification-Title': '',
'Specification-Vendor': 'Exactpro Systems LLC',
'Implementation-Title': project.name,
'Implementation-Vendor': 'Exactpro Systems LLC',
'Implementation-Vendor-Id': 'com.exactpro',
'Implementation-Version': project.version
)
}
}

dockerPrepare {
dependsOn installDist
}

docker {
copySpec.from("$buildDir/install")
implementation 'com.exactpro.th2:codec-sailfish:5.1.0-dev'
}

application {
applicationName("service")
mainClass.set("com.exactpro.th2.codec.MainKt")
}
}

dependencyCheck {
formats = ['SARIF', 'JSON', 'HTML']
failBuildOnCVSS = 5
suppressionFile = file('suppressions.xml')
analyzers {
assemblyEnabled = false
nugetconfEnabled = false
nodeEnabled = false
}
}

licenseReport {
def licenseNormalizerBundlePath = "$buildDir/license-normalizer-bundle.json"

if (!file(licenseNormalizerBundlePath).exists()) {
download.run {
src 'https://raw.githubusercontent.com/th2-net/.github/main/license-compliance/gradle-license-report/license-normalizer-bundle.json'
dest "$buildDir/license-normalizer-bundle.json"
overwrite false
}
}

filters = [
new LicenseBundleNormalizer(licenseNormalizerBundlePath, false)
]
renderers = [
new JsonReportRenderer('licenses.json', false),
]
excludeOwnGroup = false
allowedLicensesFile = new URL("https://raw.githubusercontent.com/th2-net/.github/main/license-compliance/gradle-license-report/allowed-licenses.json")
}
}
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
release_version=5.0.0
release_version=5.1.0
sf_service_name = unknown-service
docker_image_name = th2-codec-generic
docker_image_name = th2-codec-generic
6 changes: 6 additions & 0 deletions suppressions.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
<suppress base="true">
<notes><![CDATA[FP per issue https://github.com/jeremylong/DependencyCheck/issues/2995]]>
</notes>
<packageUrl regex="true">^pkg:maven/com\.exactpro\.th2/grpc-.*@.*$</packageUrl>
<cpe>cpe:/a:grpc:grpc</cpe>
</suppress>
<suppress>
<notes><![CDATA[FP per issue https://github.com/jeremylong/DependencyCheck/issues/5829]]>
</notes>
Expand Down

0 comments on commit 0256b76

Please sign in to comment.