Skip to content

Commit

Permalink
Merge branch 'release/patch_1.2.0' into 0110sync1.1.16.1to1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Ocelka committed Jan 10, 2024
2 parents aa966d5 + c575e2a commit 3a4636c
Show file tree
Hide file tree
Showing 31 changed files with 2,354 additions and 409 deletions.
33 changes: 3 additions & 30 deletions annotations/build.gradle
Original file line number Diff line number Diff line change
@@ -1,34 +1,7 @@
apply plugin: "java"
apply plugin: "com.generalbytes.gradle.main"
apply plugin: 'maven-publish'
plugins {
id("shared-build-conventions")
}

group = projectGroup
version = projectVersion

publishing {
if (hasGbUploadArtifactory) {
repositories {
maven {
credentials {
username gbArtifactoryUser
password gbArtifactoryPassword
}
url gbArtifactoryUploadUrl
}
}
}

publications {
mavenJava(MavenPublication) {
from components.java
}
}
}

dependencySubstitutions {
substitute file(batmDependencySubstitutionConfig)
}
dependencyVerifications {
checksums batmDependencyChecksumsConfig
printUnusedAssertions false
}
25 changes: 16 additions & 9 deletions batm_ssh_tunnel/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
apply plugin: "java"
apply plugin: 'application'
plugins {
id("application")
id("shared-build-conventions")
}

repositories {
mavenCentral()
}

version = "1.0.0"

application {
mainClassName = 'com.generalbytes.batm.sshtunnel.Main'
mainClass = "com.generalbytes.batm.sshtunnel.Main"
}

distributions {
Expand All @@ -18,12 +24,13 @@ distributions {
}
}

configurations.configureEach {
exclude group: "org.eclipse.ee4j"
}

dependencies {
compile(group: 'org.apache.sshd', name: 'sshd-core', version: '2.3.0')
compile(group: 'org.apache.sshd', name: 'sshd-common', version: '2.3.0')
compile(group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3')

compile group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.63'

implementation("org.apache.sshd:sshd-core:2.3.0")
implementation("org.apache.sshd:sshd-common:2.3.0")
implementation("ch.qos.logback:logback-classic:1.2.9")
implementation("org.bouncycastle:bcpkix-jdk15on:1.63")
}
71 changes: 0 additions & 71 deletions build.gradle

This file was deleted.

7 changes: 7 additions & 0 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
plugins {
id 'groovy-gradle-plugin'
}

repositories {
gradlePluginPortal()
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class GBGradlePlugin implements Plugin<Project> {
project.dependencyVerifications.configuration('releaseRuntimeClasspath')
project.dependencyVerifications.configuration('debugRuntimeClasspath')
} else if (pluginMgr.hasPlugin('org.gradle.java')) {
project.dependencyVerifications.configuration('runtime')
project.dependencyVerifications.configuration('runtimeClasspath')
}

final Configuration buildScriptClasspathConfiguration =
Expand Down
40 changes: 40 additions & 0 deletions buildSrc/src/main/groovy/shared-build-conventions.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
plugins {
id("java")
id("com.generalbytes.gradle.main")
id("shared-publish-conventions")
}

repositories {
mavenCentral()
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}

tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
options.incremental = true
}

dependencySubstitutions {
substitute file("$project.rootDir/dependencySubstitutions.txt")
}

tasks.withType(AbstractArchiveTask).configureEach {
preserveFileTimestamps = false
reproducibleFileOrder = true
}

afterEvaluate {
if (pluginManager.hasPlugin('com.generalbytes.gradle.dependency.verification')) {
dependencyChecksums {
global = true
}
dependencyVerifications {
setConfigurations([]) // effectively turns off all checksum verifications - replaced by gradle's verification-metadata.xml
}
}
}
29 changes: 29 additions & 0 deletions buildSrc/src/main/groovy/shared-publish-conventions.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
plugins {
id("maven-publish")
}

publishing {
if (hasGbUploadArtifactory()) {
repositories {
maven {
credentials {
username gbArtifactoryUser
password gbArtifactoryPassword
}
url gbArtifactoryUploadUrl
}
}
}

publications {
mavenJava(MavenPublication) {
from components.java
}
}
}

private boolean hasGbUploadArtifactory() {
return project.hasProperty("gbArtifactoryUploadUrl")
&& project.hasProperty("gbArtifactoryUser")
&& project.hasProperty("gbArtifactoryPassword")
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
ext {
hasGbArtifactory = hasGbArtifactory()
}

repositories {
maven {
url = uri("https://jitpack.io")
}
if (hasGbArtifactory) {
maven {
url = uri(project.findProperty("gbArtifactoryUrl").toString())
credentials {
username = project.findProperty("gbArtifactoryUser").toString()
password = project.findProperty("gbArtifactoryPassword").toString()
}
}
}
}

private boolean hasGbArtifactory() {
return project.hasProperty('gbArtifactoryUrl')
&& project.hasProperty('gbArtifactoryUser')
&& project.hasProperty('gbArtifactoryPassword')
}
39 changes: 5 additions & 34 deletions currencies/build.gradle
Original file line number Diff line number Diff line change
@@ -1,40 +1,11 @@
apply plugin: "java"
apply plugin: "com.generalbytes.gradle.main"
apply plugin: 'maven-publish'
plugins {
id("shared-build-conventions")
}

group = projectGroup
version = projectVersion


dependencies {
compile(group: 'org.slf4j', name: 'slf4j-api', version: '1.7.28')
testCompile (group: 'junit', name: 'junit', version: '4.13.1')
}

publishing {
if (hasGbUploadArtifactory) {
repositories {
maven {
credentials {
username gbArtifactoryUser
password gbArtifactoryPassword
}
url gbArtifactoryUploadUrl
}
}
}

publications {
mavenJava(MavenPublication) {
from components.java
}
}
}

dependencySubstitutions {
substitute file(batmDependencySubstitutionConfig)
}
dependencyVerifications {
checksums batmDependencyChecksumsConfig
printUnusedAssertions false
implementation("org.slf4j:slf4j-api:1.7.28")
testImplementation("junit:junit:4.13.1")
}
22 changes: 10 additions & 12 deletions dependencySubstitutions.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
// generated at 2021-05-26T11:51:06
// shared substitutions (project ':currencies')
substitute module: 'com.fasterxml.jackson.core:jackson-annotations', versions: ['2.9.1', '2.9.9', '2.11.2'], toVersion: '2.12.0'
substitute module: 'com.fasterxml.jackson.core:jackson-core', versions: ['2.7.4', '2.9.9', '2.11.2'], toVersion: '2.12.0'
substitute module: 'com.fasterxml.jackson.core:jackson-databind', versions: ['2.7.4', '2.8.5', '2.9.6', '2.9.9', '2.10.0', '2.11.2'], toVersion: '2.12.0'
substitute module: 'com.fasterxml.jackson.core:jackson-databind', versions: ['2.7.4', '2.9.6', '2.9.9', '2.10.0', '2.11.2'], toVersion: '2.12.0'
substitute module: 'com.fasterxml.jackson.core:jackson-core', versions: ['2.7.4', '2.11.2'], toVersion: '2.12.0'
substitute module: 'com.fasterxml.jackson.core:jackson-databind', versions: ['2.7.4', '2.9.6', '2.9.9', '2.10.0', '2.11.2'], toVersion: '2.12.0'
substitute module: 'com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider', versions: ['2.8.5'], toVersion: '2.12.0'
substitute module: 'com.github.jnr:jnr-ffi', versions: ['2.1.1'], toVersion: '2.1.2'
substitute module: 'com.fasterxml.jackson.core:jackson-annotations', versions: ['2.9.1', '2.11.2'], toVersion: '2.12.0'
substitute module: 'com.github.mmazi:rescu', versions: ['2.0.2'], toVersion: '2.1.0'
substitute module: 'com.google.code.findbugs:jsr305', versions: ['2.0.1'], toVersion: '3.0.2'
substitute module: 'com.google.errorprone:error_prone_annotations', versions: ['2.2.0', '2.3.3', '2.3.4', '2.5.1'], toVersion: '2.7.1'
substitute module: 'com.google.guava:guava', versions: ['21.0', '27.0.1-android', '28.1-android', '28.2-android', '29.0-android', '29.0-jre', '30.0-android', '30.1.1-jre', '31.0.1-android'], toVersion: '31.0.1-jre'
substitute module: 'com.google.j2objc:j2objc-annotations', versions: ['1.1'], toVersion: '1.3'
substitute module: 'com.google.errorprone:error_prone_annotations', versions: ['2.3.3', '2.3.4'], toVersion: '2.7.1'
substitute module: 'com.google.guava:guava', versions: ['21.0', '27.0.1-android', '28.1-android', '29.0-android', '29.0-jre', '30.0-android', '30.1.1-jre', '31.0.1-android'], toVersion: '31.0.1-jre'
substitute module: 'com.google.protobuf:protobuf-java', versions: ['2.6.1', '3.6.1', '3.11.0', '3.12.0'], toVersion: '3.13.0'
substitute module: 'com.madgag.spongycastle:core', versions: ['1.51.0.0', '1.52.0.0'], toVersion: '1.58.0.0'
substitute module: 'com.squareup.okhttp3:okhttp', versions: ['3.8.1', '3.12.1', '3.12.8', '3.12.12', '3.14.9', '4.2.2'], toVersion: '4.9.0'
substitute module: 'com.squareup.okhttp3:okhttp', versions: ['3.12.1', '3.12.12', '3.14.9', '4.2.2'], toVersion: '4.9.0'
substitute module: 'com.squareup.okhttp:okhttp', versions: ['2.7.2'], toVersion: '2.7.4'
substitute module: 'com.squareup.okio:okio', versions: ['1.6.0', '1.13.0', '1.16.0'], toVersion: '2.8.0'
substitute module: 'commons-codec:commons-codec', versions: ['1.3', '1.9', '1.11'], toVersion: '1.13'
Expand All @@ -29,15 +28,14 @@ substitute module: 'io.netty:netty-transport', versions: ['4.1.8.Final'], toVers
substitute module: 'javax.ws.rs:javax.ws.rs-api', versions: ['2.0.1'], toVersion: '2.1'
substitute module: 'javax.annotation:javax.annotation-api', versions: ['1.2'], toVersion: '1.3.2'
substitute module: 'org.apache.commons:commons-lang3', versions: ['3.5'], toVersion: '3.12.0'
substitute module: 'org.bouncycastle:bcprov-jdk15on', versions: ['1.54', '1.60', '1.66', '1.68'], toVersion: '1.63'
substitute module: 'org.codehaus.mojo:animal-sniffer-annotations', versions: ['1.17'], toVersion: '1.18'
substitute module: 'org.bouncycastle:bcprov-jdk15on', versions: ['1.60', '1.66', '1.68'], toVersion: '1.63'
substitute module: 'org.jetbrains.kotlin:kotlin-stdlib-jdk8', versions: ['1.3.31'], toVersion: '1.4.10'
substitute module: 'org.jetbrains.kotlin:kotlin-stdlib', versions: ['1.4.0'], toVersion: '1.4.10'
substitute module: 'org.jetbrains.kotlin:kotlin-stdlib-common', versions: ['1.4.0'], toVersion: '1.4.10'
substitute module: 'org.json:json', versions: ['20140107'], toVersion: '20180130'
substitute module: 'org.slf4j:slf4j-api', versions: ['1.7.20', '1.7.21', '1.7.25', '1.7.30', '1.7.32', '1.7.33', '1.8.0-beta4'], toVersion: '1.7.28'
substitute module: 'org.slf4j:slf4j-api', versions: ['1.7.20', '1.7.21', '1.7.25', '1.7.26', '1.7.30', '1.7.32', '1.7.33', '1.8.0-beta4'], toVersion: '1.7.28'
substitute module: 'org.knowm.xchange:xchange-core', versions: ['5.0.12', '5.0.13'], toVersion: '5.0.10'
substitute module: 'org.bouncycastle:bcprov-jdk15to18', versions: ['1.66','1.68'], toVersion: '1.69'
substitute module: 'org.bouncycastle:bcprov-jdk15to18', versions: ['1.66'], toVersion: '1.69'
substitute module: 'com.fasterxml.jackson.datatype:jackson-datatype-guava', versions: ['2.11.2'], toVersion: '2.12.0'
substitute module: 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8', versions: ['2.11.2'], toVersion: '2.12.0'
substitute module: 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310', versions: ['2.11.2'], toVersion: '2.12.0'
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# buildscript - project id
projectGroup=com.generalbytes.batm.public
projectVersion=1.1.16.2
projectVersion=1.2.5

# buildscript - common dependency versions
bitrafaelVersion=1.0.44
Expand Down
Loading

0 comments on commit 3a4636c

Please sign in to comment.