This message was deleted.
# community-support
s
This message was deleted.
e
you can set your own
-Pversion=0.1.0-$(date +%Y%m%d%H%M%S)-SNAPSHOT
or something
c
am I wrong though that the version in the pom is -SNAPSHOT, but what it changes is the jar name? meaning that doesn't exactly work?
kind of expected gradle to follow the maven "spec"
e
not sure what you mean
that timestamp isn't on the
version
field but IIRC it's on the jar, and that additional metdata
basically it seems gradle is still leaving out all of the things that actually make a snapshot a snapshot
e
seems like snapshots are kind of half-baked on GH packages anyway, https://github.com/orgs/community/discussions/24658
but that is unfortunate that there doesn't seem to be a way of poking at that field without touching the POM XML
c
and gradle doesn't support setting it
from what I can see
e
well, you can reach into the XML directly
c
I mean, you can always do that...
but that... eh, I'm just gonna do something that maven doesn't support
I'm gonna go groozfabah and try not to be frustrated
I'm only using this as a testbed for real releases anyways
so I could just make this a git based snapshot...
and later if I decide it's good enough I can use maven central as a release repository
which won't tack on git metadata
v
Are you sure Gradle does not do it? I'm pretty sure it does. Except when you publish to Maven local, there it does not.
Yes it does, I just checked.
Maybe you hit some edge-case / bug
Unless you looked at Maven local
c
I did look at maven local, since I was trying to debug what was going on, on the build. You're saying local behaves differently? is there any possibility that it's actually done server side?
v
Yes it behaves differently. And I'm pretty sure it is not done server-side.
I think I even have read the code in Gradle at some point
c
rubs temples
v
🙂
c
well that makes debugging a publication harder
since it behaves differently outside of a file copy instead of a remote upload
v
I'm not sure whether it happens with all file-based repos, maybe a file-base repo besides
mavenLocal()
behaves different
Other than that, you could for example kick up a Nexus and deploy to that maybe
c
rubs temples vigourously
I think at the moment I'm committed to updating my plugin
but I hate this... it should create the files like if I wanted to throw up an http server that simply served .m2/repository, I would think that should work. sigh, cheers 🍺 🍸 🍸
I'd open an issue, but I already know the answer
🍸 🍸 🍸
🤦‍♂️
c
yheah...
thanks, I'll make a note, in case I want to include that behavior so my plugin works more as expected
given that I'd consider a PR, but it'd be rejected on the basis of changing backwards compatibility in case someone is for some reason relying on it not behaving like maven
and I can't actually be sure it'd fix my problem atm
v
but it'd be rejected on the basis of changing backwards compatibility in case someone is for some reason relying on it not behaving like maven
A little bit less polemic and a littel bit more constructiveness might be beneficial. 😉
on it not behaving like maven
What do you mean? That in Maven Local there are not timestamps? Maybe you should double-check your facts before you start a rant.
Copy code
$ find ~/.m2/repository/org/example/bar/
/c/Users/bkautler/.m2/repository/org/example/bar/
/c/Users/bkautler/.m2/repository/org/example/bar/1.0-SNAPSHOT
/c/Users/bkautler/.m2/repository/org/example/bar/1.0-SNAPSHOT/bar-1.0-SNAPSHOT.jar
/c/Users/bkautler/.m2/repository/org/example/bar/1.0-SNAPSHOT/bar-1.0-SNAPSHOT.pom
/c/Users/bkautler/.m2/repository/org/example/bar/1.0-SNAPSHOT/maven-metadata-local.xml
/c/Users/bkautler/.m2/repository/org/example/bar/1.0-SNAPSHOT/_remote.repositories
/c/Users/bkautler/.m2/repository/org/example/bar/maven-metadata-local.xml
c
anyways, moving on from this conversation. I'm having problems feeling constructive these days when it comes to what other people are doing. Seems like every time I try to do something I just end up at some level of frustrated
so, I should work on SHUTTING UP, not being constructive
because other people aren't willing to try to empathize, and quite frequently misinterpret what I'm talking about (obviously my fault, but I can never figure out how they misinterpreted) and then act in a way that makes me even more frustrated.
v
"don't use big words"
I don't get what is written there. I can only use the words I know, I'm not a native speaker and so didn't understand 98.7 of the words there, except for the last few and that is what I already did. 😄
c
that's actually the point 😉 is that it's full of crazy big words, and you shouldn't use them. I'm saying that "polemic" is a big word. Big word being any word not used commonly in conversation. It's shorter than "constructive criticism" but I can't say I've seen anyone use it before
v
It is not at all related to "constructive criticism". I don't see "polemic" as "big word", but that might be me not being a native speaker. Feel free to tell me an alternative smaller word to express what I wanted to say that I can accept and adapt for the future if I remember it by then. 🙂
c
big word, as per the essay are words that the common person doesn't understand. "Big" here isn't used as a synonym for "long"
well... seemed to me you were saying I should be giving constructive criticism instead of just being unconstructively critical
a speech or piece of writing expressing a strongly critical attack on or controversial opinion about someone or something.
^ polemic
v
I know that big is not long. Maybe I'm just talking to other people than you. Most I talk to know the word polemic. 🙂
^ polemic
I'm not going to use a whole sentence when I can use one word 🙂
c
and as an american I've almost certainly never seen that word
I'm not going to use a whole sentence when I can use one word
of course not, I'm trying to tell you how I got to "constructive criticism" from your sentence
v
Yeah, it sounded like you said I should next time use "constructive criticism" instead of "polemic" which does not make any sense
c
A little bit less polemic and a littel bit more constructiveness might be beneficial.
seems like you're saying I should try to have more constructive criticism
v
The "I would do a PR but it is going to be rejected anyway because someone is relying on the wrong behavior, mimimimi", that was polemic
c
anyways... I think it's a "big word" but maybe that's for americans. Being terser isn't good if no one understands you (terser possibly also being a big word :p)
v
And I recommended you collapse such whining into the STFU you mentioned, and instead try to provide constructive criticism if you like. 😉
c
nah, I just need to stop the whinging
which is a term introduced by game of thrones if you haven't seen it. "it's when your mouth is moving but you aren't saying anything" (really it's a funnier synonym for whining)
v
Being terser isn't good if no one understands you
Sure, fully agree. Just as I said, I'm used to people knowing the word. 🙂 Maybe it is more known in German than English
if you haven't seen it.
I did see it, but not in original synchro
c
quite possibly, or maybe just american ;)
do you see it used on TV? possibly a good litmus test
(other big word... that shouldn't be)
v
Not a too good test imho. 😄 There are many many words you never see on TV.
By far not all of them are "big"
c
well, "big words" are words that common people don't use. They try to avoid them on TV
because most people don't have a large vocabulary
v
Yes, I said they avoid much more than only big words 🙂
c
obviously most of the proper nouns we use every day are part of that 😉
🤷 seems like a reasonable place to start though
v
Anyway, this is little off-topic here 😄
c
what?!!!
v
too big word - "off-topic"?
Never heard that on TV 😄
🤣 1
c
@Vampire you just need to watch more quality tv 😛