Hi Konstantin
Here is the build.gradle file contents.
plugins {
id 'io.jmix' version '1.4.2'
id 'java'
}
apply plugin: 'org.springframework.boot'
apply plugin: 'com.vaadin'
jmix {
bomVersion = '1.4.2'
projectId = 'main'
}
group = 'com.myapp'
version = '0.0.1-SNAPSHOT'
repositories {
mavenCentral()
maven {
url 'https://nexus.jmix.io/repository/public'
}
}
dependencies {
implementation 'io.jmix.core:jmix-core-starter'
implementation 'io.jmix.data:jmix-eclipselink-starter'
implementation 'io.jmix.security:jmix-security-flowui-starter'
implementation 'io.jmix.security:jmix-security-data-starter'
implementation 'io.jmix.localfs:jmix-localfs-starter'
implementation 'io.jmix.flowui:jmix-flowui-starter'
implementation 'io.jmix.flowui:jmix-flowui-data-starter'
implementation 'io.jmix.flowui:jmix-flowui-themes'
implementation 'io.jmix.datatools:jmix-datatools-starter'
implementation 'io.jmix.datatools:jmix-datatools-flowui-starter'
kit 'io.jmix.flowui:jmix-flowui-kit'
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
implementation 'com.myapp:inteaccmd-starter:0.0.1-SNAPSHOT'
implementation 'com.myapp:inteaccact-starter:0.0.1-SNAPSHOT'
implementation 'com.myapp:inteacccrm-starter:0.0.1-SNAPSHOT'
implementation 'com.myapp:inteaccgms-starter:0.0.1-SNAPSHOT'
implementation 'com.myapp:inteaccops-starter:0.0.1-SNAPSHOT'
implementation 'com.myapp:inteaccred-starter:0.0.1-SNAPSHOT'
implementation 'com.myapp:inteaccca-starter:0.0.1-SNAPSHOT'
implementation 'com.microsoft.sqlserver:mssql-jdbc'
implementation 'com.myapp:inteaccap-starter:0.0.1-SNAPSHOT'
implementation 'com.myapp:inteaccar-starter:0.0.1-SNAPSHOT'
implementation 'com.myapp:inteacchr-starter:0.0.1-SNAPSHOT'
}
test {
useJUnitPlatform()
}
As you can see this is a Composite project of FlowUI that I built based on your guidance here which is working perfectly except this studio issue lately.
I append below one of the add-ons’ gradle file too.
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath "io.jmix.gradle:jmix-gradle-plugin:1.4.2"
}
}
group = 'com.myapp'
version = '0.0.1-SNAPSHOT'
subprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'io.jmix'
repositories {
mavenCentral()
maven {
url 'https://nexus.jmix.io/repository/public'
}
}
jmix {
bomVersion = '1.4.2'
projectId = 'ops'
}
group = this.group
version = this.version
def props = new Properties()
buildFile.withInputStream { props.load(it) }
def subArchivesBaseName = props.getProperty('archivesBaseName')
def archName = subArchivesBaseName.substring(1, subArchivesBaseName.length() - 1)
java {
withSourcesJar()
}
artifacts {
archives sourcesJar
}
publishing {
repositories {
maven {
url = 'https://myrepo/releases/'
credentials {
username rootProject.hasProperty('uploadUser') ? rootProject['uploadUser'] : 'admin'
password rootProject.hasProperty('uploadPassword') ? rootProject['uploadPassword'] : 'admin'
}
allowInsecureProtocol = true
}
}
publications {
javaMaven(MavenPublication) {
artifactId = archName
from components.java
}
}
}
// remove after https://youtrack.jetbrains.com/issue/IDEA-227215 is fixed
tasks.withType(GenerateModuleMetadata) {
enabled = false
}
}