-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Anna Hablova
committed
Jun 3, 2024
1 parent
35d7ec8
commit 29b3480
Showing
1 changed file
with
87 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,129 +1,129 @@ | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
plugins { | ||
kotlin("jvm") version "1.6.10" | ||
kotlin("jvm") version "1.6.10" | ||
|
||
// https://github.com/gradle-nexus/publish-plugin | ||
id("io.github.gradle-nexus.publish-plugin") version "1.1.0" | ||
id("maven-publish") | ||
id("signing") | ||
// https://github.com/gradle-nexus/publish-plugin | ||
id("io.github.gradle-nexus.publish-plugin") version "1.1.0" | ||
id("maven-publish") | ||
id("signing") | ||
} | ||
|
||
group = "org.boomevents" | ||
version = "1.5.0-beta.1" | ||
version = "1.6.0-beta.1" | ||
|
||
java.sourceCompatibility = JavaVersion.VERSION_11 | ||
java.targetCompatibility = JavaVersion.VERSION_11 | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.14.2") | ||
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2") | ||
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.14.2") | ||
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2") | ||
|
||
implementation("com.konghq:unirest-java:3.13.6") | ||
implementation("com.konghq:unirest-objectmapper-jackson:3.13.6") | ||
implementation("com.konghq:unirest-java:3.13.6") | ||
implementation("com.konghq:unirest-objectmapper-jackson:3.13.6") | ||
|
||
implementation( | ||
"org.jetbrains.kotlin:kotlin-stdlib:1.6.10" | ||
) | ||
implementation( | ||
"org.jetbrains.kotlin:kotlin-stdlib:1.6.10" | ||
) | ||
|
||
testImplementation("junit:junit:4.13.2") | ||
testImplementation("org.junit.vintage:junit-vintage-engine:5.8.2") | ||
testImplementation("org.mockito.kotlin:mockito-kotlin:3.2.0") | ||
testImplementation("junit:junit:4.13.2") | ||
testImplementation("org.junit.vintage:junit-vintage-engine:5.8.2") | ||
testImplementation("org.mockito.kotlin:mockito-kotlin:3.2.0") | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
withJavadocJar() | ||
withSourcesJar() | ||
withJavadocJar() | ||
} | ||
|
||
signing { | ||
val signingKey: String? = System.getenv("GRADLE_GPG_SIGN_KEY") | ||
val signingPassword: String? = System.getenv("GRADLE_GPG_SIGN_PASSWORD") | ||
val signingKey: String? = System.getenv("GRADLE_GPG_SIGN_KEY") | ||
val signingPassword: String? = System.getenv("GRADLE_GPG_SIGN_PASSWORD") | ||
|
||
useInMemoryPgpKeys(signingKey, signingPassword) | ||
useInMemoryPgpKeys(signingKey, signingPassword) | ||
|
||
sign(publishing.publications) | ||
sign(publishing.publications) | ||
} | ||
|
||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("sdk") { | ||
pom { | ||
groupId = "org.boomevents" | ||
artifactId = "hubspot-sdk" | ||
version = version | ||
|
||
name.set("HubSpot SDK") | ||
description.set("Implementation of HubSpot API for Java/Kotlin in tiny SDK") | ||
url.set("https://github.com/boomevents/hubspot") | ||
|
||
licenses { | ||
license { | ||
name.set("The Apache License, Version 2.0") | ||
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id.set("boomevents") | ||
name.set("BOOM") | ||
email.set("[email protected]") | ||
} | ||
} | ||
|
||
scm { | ||
connection.set("scm:git:git://github.com:boomevents/hubspot.git") | ||
developerConnection.set("scm:git:ssh://github.com:boomevents/hubspot.git") | ||
url.set("https://github.com/boomevents/hubspot") | ||
} | ||
} | ||
|
||
from(components["java"]) | ||
} | ||
} | ||
publications { | ||
create<MavenPublication>("sdk") { | ||
pom { | ||
groupId = "org.boomevents" | ||
artifactId = "hubspot-sdk" | ||
version = version | ||
|
||
name.set("HubSpot SDK") | ||
description.set("Implementation of HubSpot API for Java/Kotlin in tiny SDK") | ||
url.set("https://github.com/boomevents/hubspot") | ||
|
||
licenses { | ||
license { | ||
name.set("The Apache License, Version 2.0") | ||
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id.set("boomevents") | ||
name.set("BOOM") | ||
email.set("[email protected]") | ||
} | ||
} | ||
|
||
scm { | ||
connection.set("scm:git:git://github.com:boomevents/hubspot.git") | ||
developerConnection.set("scm:git:ssh://github.com:boomevents/hubspot.git") | ||
url.set("https://github.com/boomevents/hubspot") | ||
} | ||
} | ||
|
||
from(components["java"]) | ||
} | ||
} | ||
} | ||
|
||
nexusPublishing { | ||
repositories { | ||
create("sdk") { | ||
nexusUrl.set( | ||
uri("https://s01.oss.sonatype.org/service/local/") | ||
) | ||
|
||
snapshotRepositoryUrl.set( | ||
uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") | ||
) | ||
|
||
username.set( | ||
System.getenv("SONATYPE_USERNAME") | ||
) | ||
password.set( | ||
System.getenv("SONATYPE_PASSWORD") | ||
) | ||
} | ||
} | ||
repositories { | ||
create("sdk") { | ||
nexusUrl.set( | ||
uri("https://s01.oss.sonatype.org/service/local/") | ||
) | ||
|
||
snapshotRepositoryUrl.set( | ||
uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") | ||
) | ||
|
||
username.set( | ||
System.getenv("SONATYPE_USERNAME") | ||
) | ||
password.set( | ||
System.getenv("SONATYPE_PASSWORD") | ||
) | ||
} | ||
} | ||
} | ||
|
||
tasks.withType<Test> { | ||
useJUnitPlatform() | ||
useJUnitPlatform() | ||
|
||
failFast = true // End after first failed test | ||
failFast = true // End after first failed test | ||
|
||
outputs.upToDateWhen { false } | ||
outputs.upToDateWhen { false } | ||
} | ||
|
||
tasks.withType<KotlinCompile> { | ||
kotlinOptions { | ||
freeCompilerArgs = listOf( | ||
"-Xjsr305=strict", | ||
"-Xallow-result-return-type" | ||
) | ||
jvmTarget = "11" | ||
} | ||
kotlinOptions { | ||
freeCompilerArgs = listOf( | ||
"-Xjsr305=strict", | ||
"-Xallow-result-return-type" | ||
) | ||
jvmTarget = "11" | ||
} | ||
} |