Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.gradle
build
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
java corretto-8.352.08.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
import java.text.SimpleDateFormat
import java.util.Date

plugins {
java
`maven-publish`
id("net.nemerosa.versioning") version "2.14.0"
}

repositories {
mavenLocal()
maven {
url = uri("https://s3.amazonaws.com/maven-repo-public-kineticdata.com/releases")
}

maven {
url = uri("s3://maven-repo-private-kineticdata.com/releases")
authentication {
create<AwsImAuthentication>("awsIm")
}

}

maven {
url = uri("https://s3.amazonaws.com/maven-repo-public-kineticdata.com/snapshots")
}

maven {
url = uri("s3://maven-repo-private-kineticdata.com/snapshots")
authentication {
create<AwsImAuthentication>("awsIm")
}
}

maven {
url = uri("https://repo.maven.apache.org/maven2/")
}

maven {
url = uri("https://repo.springsource.org/release/")
}

}

dependencies {
implementation("com.jayway.jsonpath:json-path:2.4.0")
implementation("org.apache.httpcomponents:httpclient:4.5.1")
implementation("org.slf4j:slf4j-api:1.7.10")
implementation("com.googlecode.json-simple:json-simple:1.1.1")
implementation("com.kineticdata.agent:kinetic-agent-adapter:1.1.3")
implementation("com.google.guava:guava:18.0")
implementation("org.json:json:20220320")
testImplementation("org.apache.logging.log4j:log4j-api:2.11.2")
testImplementation("org.apache.logging.log4j:log4j-core:2.11.2")
testImplementation("org.apache.logging.log4j:log4j-slf4j-impl:2.11.2")
}

group = "com.kineticdata.bridges.adapter"
version = "1.0.2"
description = "kinetic-bridgehub-adapter-generic-rest"
java.sourceCompatibility = JavaVersion.VERSION_1_8

publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
repositories {
maven {
val releasesUrl = uri("s3://maven-repo-private-kineticdata.com/releases")
val snapshotsUrl = uri("s3://maven-repo-private-kineticdata.com/snapshots")
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsUrl else releasesUrl
authentication {
create<AwsImAuthentication>("awsIm")
}
}
}
}

tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}
versioning {
gitRepoRootDir = "../../"
}
tasks.processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
val currentDate = SimpleDateFormat("yyyy-MM-dd").format(Date())
from("src/main/resources"){
filesMatching("**/*.version") {
expand(
"buildNumber" to versioning.info.build,
"buildDate" to currentDate,
"timestamp" to System.currentTimeMillis(),
"version" to project.version
)
}
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
240 changes: 240 additions & 0 deletions bridge-adapters/kinetic-bridgehub-adapter-generic-rest/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading