Skip to content

Commit

Permalink
Merge pull request #52 from josdem/feature/44
Browse files Browse the repository at this point in the history
[small]Feature/44
  • Loading branch information
Lemeri123 authored Jan 4, 2025
2 parents 6827f50 + 86e32ca commit 8169fc8
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
plugins {
id 'java'
id 'application'
id 'com.diffplug.spotless' version '6.25.0'
id 'org.springframework.boot' version '3.3.5'
id 'io.spring.dependency-management' version '1.1.6'
}

group = 'com.josdem.jmetadata'
version = '1.1.7'
version = '1.2.0'

java {
toolchain {
Expand Down Expand Up @@ -44,6 +45,18 @@ repositories {
mavenCentral()
}

spotless {
java {
target fileTree('.') {
include 'src/**/*.java'
exclude '/build/**'
}
googleJavaFormat()
removeUnusedImports()
endWithNewline()
}
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation "org.aspectj:aspectjtools:$aspectjVersion"
Expand Down Expand Up @@ -71,6 +84,8 @@ test {
useJUnitPlatform()
}

test.dependsOn("spotlessApply")

tasks.register('settingCredentials') {
ant.replace(file: "${targetDir}/Auth.java", token: "LASTFM_API_KEY", value: "${LASTFM_API_KEY}")
ant.replace(file: "${targetDir}/Auth.java", token: "LASTFM_API_SECRET", value: "${LASTFM_API_SECRET}")
Expand Down

0 comments on commit 8169fc8

Please sign in to comment.