done tasks of maven and gradle

This commit is contained in:
RolandBakunts 2023-01-04 12:42:00 -08:00
parent e8e37b35c3
commit 900f5ae1f6
3 changed files with 32 additions and 6 deletions

View file

@ -2,14 +2,23 @@ plugins {
id 'org.springframework.boot' version '3.0.0'
id 'io.spring.dependency-management' version '1.0.13.RELEASE'
id 'java'
id 'pl.allegro.tech.build.axion-release' version '1.14.0'
}
apply plugin: 'java'
group = 'org.springframework.samples'
version = '3.0.0'
version = scmVersion.version
sourceCompatibility = '17'
jar {
manifest {
attributes(
'Main-Class': 'org.springframework.samples.petclinic.PetClinicApplication'
)
}
}
repositories {
mavenCentral()
}
@ -38,4 +47,10 @@ dependencies {
tasks.named('test') {
useJUnitPlatform()
println("Tests is executed")
}
tasks.build.doLast(){
test
java.awt.Desktop.desktop.browse "http://127.0.0.1:5500/build/reports/tests/test/index.html".toURI()
}

19
pom.xml
View file

@ -1,11 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.samples</groupId>
<artifactId>spring-petclinic</artifactId>
<version>3.0.0-SNAPSHOT</version>
<parent>
<version>4.2.8-SNAPSHOT</version>
<scm>
<connection>scm:git:https://github.com/RolandBakunts/spring-petclinic.git</connection>
<tag>spring-petclinic</tag>
</scm>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.0</version>
@ -163,6 +166,14 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>

View file

@ -1 +1 @@
rootProject.name = 'spring-petclinic'
rootProject.name = 'spring-petclinic-changed'