I am trying to customize the Helium theme for my app, but when I try to do so a couple of lines get added to my build.gradle file:
themes 'io.jmix.ui:jmix-ui-themes'
implementation 'io.jmix.ui:jmix-ui-themes'
then the Jmix IDE Tree expands with the new tree nodes in the Themes node as expected.
Then when I restart my app I get the following error:
Have tried adding a repo in build.gradle but also no luck. Back in CUBA Platform times I used to modify a .scss file that was available, but for JMix it seems everything has been abstracted away from the user and can’t find a reliable way to customize the theme.
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve io.jmix.ui:jmix-ui-themes:1.0.1.
Required by:
project :
> Could not resolve io.jmix.ui:jmix-ui-themes:1.0.1.
> Could not get resource 'https://global.repo.jmix.io/repository/public/io/jmix/ui/jmix-ui-themes/1.0.1/jmix-ui-themes-1.0.1.pom'.
> Could not GET 'https://global.repo.jmix.io/repository/public/io/jmix/ui/jmix-ui-themes/1.0.1/jmix-ui-themes-1.0.1.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.0.2/userguide/build_environment.html#gradle_system_properties
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve io.jmix.ui:jmix-ui-themes:1.0.1.
> Could not get resource 'https://repo.jmix.io/repository/public/io/jmix/ui/jmix-ui-themes/1.0.1/jmix-ui-themes-1.0.1.pom'.
> Could not GET 'https://repo.jmix.io/repository/public/io/jmix/ui/jmix-ui-themes/1.0.1/jmix-ui-themes-1.0.1.pom'.
> repo.jmix.io: No address associated with hostname
> Could not resolve io.jmix.ui:jmix-ui-themes:1.0.1.
> Could not get resource 'https://nexus.talanlabs.com/content/repositories/releases/io/jmix/ui/jmix-ui-themes/1.0.1/jmix-ui-themes-1.0.1.pom'.
> Could not GET 'https://nexus.talanlabs.com/content/repositories/releases/io/jmix/ui/jmix-ui-themes/1.0.1/jmix-ui-themes-1.0.1.pom'.
> nexus.talanlabs.com: Name or service not known
> Could not resolve io.jmix.ui:jmix-ui-themes:1.0.1.
Required by:
project : > io.jmix.bom:jmix-bom:1.0.1
> Could not resolve io.jmix.ui:jmix-ui-themes:1.0.1.
> Could not get resource 'https://global.repo.jmix.io/repository/public/io/jmix/ui/jmix-ui-themes/1.0.1/jmix-ui-themes-1.0.1.pom'.
> Could not GET 'https://global.repo.jmix.io/repository/public/io/jmix/ui/jmix-ui-themes/1.0.1/jmix-ui-themes-1.0.1.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.0.2/userguide/build_environment.html#gradle_system_properties
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve io.jmix.ui:jmix-ui-themes:1.0.1.
> Could not get resource 'https://repo.jmix.io/repository/public/io/jmix/ui/jmix-ui-themes/1.0.1/jmix-ui-themes-1.0.1.pom'.
> Could not GET 'https://repo.jmix.io/repository/public/io/jmix/ui/jmix-ui-themes/1.0.1/jmix-ui-themes-1.0.1.pom'.
> repo.jmix.io: No address associated with hostname
> Could not resolve io.jmix.ui:jmix-ui-themes:1.0.1.
> Could not get resource 'https://nexus.talanlabs.com/content/repositories/releases/io/jmix/ui/jmix-ui-themes/1.0.1/jmix-ui-themes-1.0.1.pom'.
> Could not GET 'https://nexus.talanlabs.com/content/repositories/releases/io/jmix/ui/jmix-ui-themes/1.0.1/jmix-ui-themes-1.0.1.pom'.
> nexus.talanlabs.com: Name or service not known
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Below my gradle file for you to check repos and rest of my configuration. If anyone notices anything wrong on my side would be grateful to know.
plugins {
id 'io.jmix' version '1.0.2'
id 'java'
}
apply plugin: 'org.springframework.boot'
jmix {
bomVersion = '1.0.1'
}
group = 'com.company'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://global.repo.jmix.io/repository/public'
}
maven { url "https://repo.jmix.io/repository/public/" }
maven {
url 'https://nexus.talanlabs.com/content/repositories/releases/'
}
flatDir {
dirs 'src/libs'
}
}
dependencies {
implementation 'io.jmix.core:jmix-core-starter'
implementation 'io.jmix.data:jmix-eclipselink-starter'
implementation 'io.jmix.ui:jmix-ui-starter'
implementation 'io.jmix.ui:jmix-ui-data-starter'
implementation 'io.jmix.ui:jmix-ui-widgets-compiled'
implementation 'io.jmix.security:jmix-security-starter'
implementation 'io.jmix.security:jmix-security-ui-starter'
implementation 'io.jmix.security:jmix-security-data-starter'
implementation 'io.jmix.localfs:jmix-localfs-starter'
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 'mysql:mysql-connector-java'
implementation 'io.jmix.email:jmix-email-starter'
implementation 'io.jmix.email:jmix-email-ui-starter'
implementation 'net.sf.jasperreports:jasperreports:3.7.3'
implementation fileTree(dir: 'src/libs/libs', include: ['*.jar'])
implementation 'xml-apis:xml-apis:1.3.04'
themes 'io.jmix.ui:jmix-ui-themes'
implementation 'io.jmix.ui:jmix-ui-themes'
}
test {
useJUnitPlatform()
}
Many thanks in advance.
Carlos.