Почему java -jar игнорирует твой -cp и как это обойти

Привет, Хабр! Когда java -jar цинично игнорирует ваш -cp , хочется грустить, но спокойствие, сегодня рассмотрим, почему так происходит и как это обойти.

https://habr.com/ru/companies/otus/articles/911992/

#java #jar #cp #classpath #ClassPath #JPQL #оптимизация_Hibernate

Почему java -jar игнорирует твой -cp и как это обойти

Привет, Хабр! Когда java -jar цинично игнорирует ваш -cp , хочется грустить, но спокойствие, сегодня рассмотрим, почему так происходит и как это обойти. Откуда ноги растут: приоритет Class-Path’а...

Хабр

Then JB (https://github.com/thejibz) explains how Quarkus' Fast-JAR reduces your application's Docker image layers and why it has a faster startup time (3/3)

https://blog.worldline.tech/2023/09/05/quarkus-fast-jar.html

#TechAtWorldline #quarkus #docker #java #classpath #manifest

thejibz - Overview

thejibz has 36 repositories available. Follow their code on GitHub.

GitHub

When it comes to modularization, tools like #gradle build on top of what #java supports and provides. I often see confusion about where the functionality of Java tools end and where Gradle starts (and why or why not you need it at all).

That's why I'll do a couple of videos to explore this step-by-step. Here is the first one, in which I talk about the #classpath:

https://www.youtube.com/watch?v=HqAp9JBl2_U&list=PLWQK2ZdV4Yl2k2OmC_gsjDpdIBTN0qqkE

#understandinggradle

Understanding Gradle #26 – The Classpath

YouTube
#TIL: #Gradle's #dependency #exclusion fails to let us specify specific jars by name, fails to let us specify specific #classifiers by name.

So, if you have a dependency that (by mistake) also includes #sources and #javadoc, Gradle won't allow you to omit those from the #classpath using its #dependencyManagement.

Instead, we have to alter how the #classpath libraries are gathered: we have to exclude files whose name contains "sources" or "javadoc", and hope for the best - 1/2