Skip to content

Commit

Permalink
fix: build.gradle, jitpack.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
youabledev committed Dec 15, 2024
1 parent 4f5fcae commit 4aabe75
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 31 deletions.
42 changes: 19 additions & 23 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,49 +1,45 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.4.0' apply false
id 'io.spring.dependency-management' version '1.1.6'
id 'maven-publish'
id 'io.spring.dependency-management' version '1.1.3'
}

group = 'com.youable'
version = '0.1.3'

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

group = 'com.youable'
version = '0.1.4'

repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}

dependencyManagement {
imports {
mavenBom org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES
mavenBom 'org.springframework.boot:spring-boot-dependencies:3.1.4'
}
}


dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'org.aspectj:aspectjweaver'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
implementation 'org.aspectj:aspectjweaver:1.9.22.1'
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.3'
}

publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'com.youable.safehttp'
artifactId = 'spring-safe-http'
version = '0.1.3'
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}

tasks.named('test') {
useJUnitPlatform()
}
repositories {
maven {
name = "JitPack"
url = uri("https://jitpack.io")
}
}
}
10 changes: 2 additions & 8 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
jdk:
- openjdk17

before_install:
- sdk install java 17.0.2-zulu
- sdk use java 17.0.2-sulu
- sdk install maven
- mvn -v

install:
- ./gradlew build publishToMavenLocal
- sdk install java 17.0.1-open
- sdk use java 17.0.1-open

0 comments on commit 4aabe75

Please sign in to comment.