Pheotis
Pheotis
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 9/25/2024 in #java-help
Regex on `finalName`
perfect! Thanks!
19 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 9/25/2024 in #java-help
Regex on `finalName`
No description
19 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 9/25/2024 in #java-help
Regex on `finalName`
😮 that is a lot easier than my attempted solution
19 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 9/25/2024 in #java-help
Regex on `finalName`
I figure that the maven git commit id plugin already knows the branch, so it should be possible to control the name of the jar to avoid confusion
19 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 9/25/2024 in #java-help
Regex on `finalName`
also whenever anyone builds it manually
19 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 9/25/2024 in #java-help
Regex on `finalName`
I want to omit -${git.commit.id.abbrev} for all branches other than nightly
19 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 9/25/2024 in #java-help
Selective finalNames in Maven?
Currently using this:
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>9.0.1</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
<configuration>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
<includeOnlyProperties>
<includeOnlyProperty>^git.commit.id.abbrev</includeOnlyProperty>
<includeOnlyProperty>^git.branch</includeOnlyProperty>
</includeOnlyProperties>
<replacementProperties>
<replacementProperty>
<property>git.branch</property>
<propertyOutputSuffix>caps</propertyOutputSuffix>
<forceValueEvaluation>false</forceValueEvaluation>
<transformationRules>
<transformationRule>
<apply>AFTER</apply>
<action>UPPER_CASE</action>
</transformationRule>
</transformationRules>
</replacementProperty>
</replacementProperties>
<commitIdGenerationMode>full</commitIdGenerationMode>
</configuration>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>9.0.1</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
<configuration>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
<includeOnlyProperties>
<includeOnlyProperty>^git.commit.id.abbrev</includeOnlyProperty>
<includeOnlyProperty>^git.branch</includeOnlyProperty>
</includeOnlyProperties>
<replacementProperties>
<replacementProperty>
<property>git.branch</property>
<propertyOutputSuffix>caps</propertyOutputSuffix>
<forceValueEvaluation>false</forceValueEvaluation>
<transformationRules>
<transformationRule>
<apply>AFTER</apply>
<action>UPPER_CASE</action>
</transformationRule>
</transformationRules>
</replacementProperty>
</replacementProperties>
<commitIdGenerationMode>full</commitIdGenerationMode>
</configuration>
</plugin>
6 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 9/25/2024 in #java-help
Selective finalNames in Maven?
It might be possible with the Git Maven ID Plugin, but if it is, I don't know where I would even start
6 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 6/17/2024 in #java-help
Gradle Translation
For now, I work around this by fetching the jar with wget and installing it locally
15 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 6/17/2024 in #java-help
Gradle Translation
The repo used in the pom relies on a file that doesn't exist in the remote yet (it will eventually, just not yet)
15 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 6/17/2024 in #java-help
Gradle Translation
It's part of a build pipeline that I'm the main one who uses
15 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 6/17/2024 in #java-help
Force install dependency.
Figured it out.
6 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 6/17/2024 in #java-help
Force install dependency.
I am currently wgetting the dependency jar, putting it in the folder with the project's files, and running:
mvn -X install:install-file -name.jar \
-DgroupId=tld.domain \
-DartifactId=name\
-Dversion="$core_version" \
-Dpackaging=jar \
-DgeneratePom=true
mvn -X install
mvn -X install:install-file -name.jar \
-DgroupId=tld.domain \
-DartifactId=name\
-Dversion="$core_version" \
-Dpackaging=jar \
-DgeneratePom=true
mvn -X install
The first install ... builds?... the dependency successfully, but doesn't build the main project jar. The second install fails to build the main project jar because it is for some reason missing the dependency that was just installed.
6 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 4/15/2023 in #java-help
error: cannot access il; class file for il not found.
Also not sure why it fails on the array.add line of all places
12 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 4/15/2023 in #java-help
error: cannot access il; class file for il not found.
If "il" is a class, maybe it's from a dependency? Still not sure why it's looking for that class though since I can't find anything that refers to it
12 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 4/15/2023 in #java-help
error: cannot access il; class file for il not found.
No description
12 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 4/15/2023 in #java-help
error: cannot access il; class file for il not found.
Specifically, the relevant section is:
12 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 4/15/2023 in #java-help
error: cannot access il; class file for il not found.
Sorry, that was a typo; I was half asleep when I copied that last night from some old code.
12 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 4/14/2023 in #java-help
Adding ancient dependency to maven.
No description
15 replies
JCHJava Community | Help. Code. Learn.
Created by Pheotis on 4/14/2023 in #java-help
Adding ancient dependency to maven.
found the problem
15 replies