Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Oct 15, 2023
1 parent 1e30102 commit 2e814e5
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 24 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: "Validate Gradle Wrapper"
on: [push, pull_request]

jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
25 changes: 5 additions & 20 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@ plugins {
id "signing"
}

archivesBaseName = "Classic4J"
version = "2.0.2-SNAPSHOT"
group = "de.florianmichael"

configurations {
implementation.extendsFrom lib
api.extendsFrom lib
}
archivesBaseName = project.maven_name
version = project.maven_version
group = project.maven_group

repositories {
mavenCentral()
Expand All @@ -30,15 +25,7 @@ java {
}

jar {
dependsOn configurations.lib
from {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
configurations.lib.collect {
zipTree(it)
}
} {
exclude "META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA"
}
// Rename the project's license file to LICENSE_<project_name> to avoid conflicts
from("LICENSE") {
rename {
"${it}_${project.archivesBaseName}"
Expand All @@ -50,9 +37,7 @@ publishing {
repositories {
maven {
name = "reposilite"
def releasesUrl = "https://maven.lenni0451.net/releases"
def snapshotsUrl = "https://maven.lenni0451.net/snapshots"
url = project.version.endsWith("SNAPSHOT") ? snapshotsUrl : releasesUrl
url = "https://maven.lenni0451.net/" + (project.version.endsWith("SNAPSHOT") ? "snapshots" : "releases")

credentials(PasswordCredentials)
authentication {
Expand Down
8 changes: 8 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# gradle
org.gradle.jvmargs=-Xmx8G
org.gradle.parallel=true

# project
maven_name=Classic4J
maven_version=2.0.2-SNAPSHOT
maven_group=de.florianmichael
9 changes: 5 additions & 4 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
jdk:
- openjdk17
# Deploys the latest stable JDK available and sets it to default without having to manually specify it here,
# Which includes using temurin as the distribution.
before_install:
- sdk install java 17.0.1-open
- sdk use java 17.0.1-open
- curl -s "https://get.sdkman.io" | bash
- source ~/.sdkman/bin/sdkman-init.sh
- sdk install java

0 comments on commit 2e814e5

Please sign in to comment.