-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
73 lines (69 loc) · 2.54 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
buildscript {
repositories {
mavenCentral()
maven { setUrl("https://maven.vaadin.com/vaadin-prereleases") }
maven { url "https://plugins.gradle.org/m2/" }
}
}
plugins {
id("java")
id("org.springframework.boot") version "3.2.7"
id("com.diffplug.spotless") version "6.23.3"
id("io.spring.dependency-management") version "1.1.0"
id 'com.vaadin'
id 'maven-publish'
}
apply plugin: 'maven-publish'
version = "0.1"
group = "example.micronaut"
sourceCompatibility = 17
targetCompatibility = 17
repositories {
mavenCentral()
maven { setUrl("https://maven.vaadin.com/vaadin-prereleases") }
maven { url "https://plugins.gradle.org/m2/" }
flatDir {
dirs("libs")
}
}
vaadin {
pnpmEnable = false
}
dependencies {
implementation enforcedPlatform("com.vaadin:vaadin-bom:24.4.6")
annotationProcessor("io.micronaut:micronaut-inject-java")
annotationProcessor("io.micronaut.data:micronaut-data-processor:4.8.1")
implementation("io.micronaut.data:micronaut-data-jdbc")
implementation platform("io.micronaut.platform:micronaut-platform:4.5.0")
implementation("io.micronaut.spring:micronaut-spring-boot-starter")
implementation("io.micronaut.sql:micronaut-jdbc-hikari")
implementation("jakarta.annotation:jakarta.annotation-api")
implementation("jakarta.persistence:jakarta.persistence-api")
implementation("org.springframework.boot:spring-boot-starter-web")
annotationProcessor("jakarta.annotation:jakarta.annotation-api")
implementation("jakarta.annotation:jakarta.annotation-api")
annotationProcessor("jakarta.persistence:jakarta.persistence-api")
implementation("jakarta.persistence:jakarta.persistence-api")
implementation("io.micronaut.spring:micronaut-spring-boot-starter")
//implementation("com.vaadin:vaadin-core")
// https://mvnrepository.com/artifact/com.vaadin/vaadin-spring-boot-starter
implementation group: 'com.vaadin', name: 'vaadin-spring-boot-starter', version: '24.4.6'
implementation fileTree(dir: 'libs', includes: ['*.jar'])
// https://mvnrepository.com/artifact/io.micronaut.spring/micronaut-spring-boot
//implementation 'io.micronaut.spring:micronaut-spring-boot:5.7.0'
implementation 'io.micronaut.spring:micronaut-spring:5.7.0'
runtimeOnly("com.h2database:h2")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
tasks.named('test') {
useJUnitPlatform()
}
jar{
archivesBaseName = 'micronaut-spring'
version = '1.0'
}
spotless {
java {
licenseHeaderFile(file("LICENSEHEADER"))
}
}