Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modernize deps #1

Merged
merged 5 commits into from
Jul 29, 2024
Merged
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
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Java CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'gradle'

- name: Build with Gradle
run: ./gradlew build
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

99 changes: 0 additions & 99 deletions build.gradle

This file was deleted.

85 changes: 85 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
buildscript {
repositories {
mavenCentral()
}
}
repositories {
mavenCentral()
}

plugins {
id("java")
// id("org.jetbrains.kotlin.jvm")
id("org.jetbrains.dokka")
id("maven-publish")
}

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

dependencies {
// api(Kotlin.stdlib.jdk8)

implementation("org.bouncycastle:bcprov-jdk15on:_")
implementation("com.auth0:java-jwt:_")
implementation("org.apache.commons:commons-lang3:_")
implementation("commons-codec:commons-codec:_")
implementation("com.google.guava:guava:_")
implementation("org.slf4j:slf4j-api:_")
testImplementation("org.testng:testng:_")
testImplementation("org.assertj:assertj-core:_")
}

tasks.withType<Test> {
useTestNG()
}

val artifactName = "inbot-utils"
val artifactGroup = "com.github.jillesvangurp"

val sourceJar = task("sourceJar", Jar::class) {
dependsOn(tasks["classes"])
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}

val javadocJar = task("javadocJar", Jar::class) {
from(tasks["dokkaJavadoc"])
archiveClassifier.set("javadoc")
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
groupId = artifactGroup
artifactId = artifactName
pom {
description.set("Kts extensions for kt-search. Easily script operations for Elasticsearch and Opensearch with .main.kts scripts")
name.set(artifactId)
url.set("https://github.com/jillesvangurp/inbot-utils")
licenses {
license {
name.set("MIT")
url.set("https://github.com/jillesvangurp/inbot-utils/LICENSE")
distribution.set("repo")
}
}
developers {
developer {
id.set("jillesvangurp")
name.set("Jilles van Gurp")
}
}
scm {
url.set("https://github.com/jillesvangurp/inbot-utils/LICENSE")
}
}

from(components["java"])
artifact(sourceJar)
artifact(javadocJar)
}
}
}
4 changes: 0 additions & 4 deletions forbidden_signatures.txt

This file was deleted.

Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.3.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading