(Also asked in <#C0922A726|general> and <#C0B8H786...
# getting-started
k
(Also asked in #general and #intellij ) In Intellij when I run my application, it finds my
src/main/resources/logback.xml
and logs correctly, but when I build a fat jar to run on my production, there is no logging whatsoever. I can only assume the
logback.xml
is not being found. But I have set up Intellij to include it in the build via the Module settings. How does one get logback to work with an artifact?
stackoverflow 1
👎 1
n
this is not related to kotlin at all and it posting in multiple channels looks a lot like spam there’s stackoverflow for that
👍 1
k
I thought that #intellij was about questions re IntelliJ. This seems to have something to do with configuring packaging of my app with IntelliJ. And since it’s about compiling and distributing Kotlin where it works until the packaging phase, it seems related to Kotlin, so I tried in #general. And #getting-started since I figured it’s a common issue people have when getting started.
In any case, maybe it doesn’t seem related to Kotlin to you, but it absolutely seems related to Kotlin to me. Maybe with more expertise about this, it’s obvious it’s not a Kotlin-related question. But it sure seems like it’s related to Kotlin to me.
And sure, SO is another place to get help, but pretty much every question asked here could also be posted on SO, so that doesn’t seem dispositive. Am I wrong about that?
In any case, I was trying to be very up front and polite, and I disagree with your evaluation that this isn’t related to Kotlin. It’s specifically happening in one step of my Kotlin dev/deployment process.
That being said, if you’re a mod and telling me this is inappropriate, I’ll take it down. Otherwise, you’re a peer disagreeing with me about policy interpretation that neither of us are in charge of :)
q
Uh are you using Gradle?
n
@kyleg i’m not a mod and it has nothing to do with being polite you’re writing about the building of an artifact and the issue is related to a xml file hence, i disagree with your evaluation it’s related to kotlin
you can argue further because “i’m not a mod” i won’t bring anything again, try stackoverflow
k
@nfrankel I didn't have any interest in arguing, not sure why you're being rude to me.
@Quy D X Nguyen Yes I am. I can't remember if IntelliJ picked that for me or Android Studio did in my initial creation of the project when I was struggling to figure out how to create a Kotlin project without installing yet another IDE (I have done Kotlin + Android work and had no need for IntelliJ at the time)
n
i’m pointing out it’s not related to kotlin and you keep arguing by your own admission tell you’ve submitted it in 3 different channels if people don’t answer, there’s a reason...
k
It looks like something isn't in the classpath (maybe something got pulled via Maven by mistake and not added to Gradle?), so I'm going to investigate.
@nfrankel I haven't argued about anything except in defense of you calling me a spammer.
Everything else was to explain my confusion at you calling me a spammer. If I mistook your first comment for an attack, then I'm sorry :)
n
i’ve explained my point on why this is unrelated to kotlin now, it’s up to you
q
Ye there are a lot of toxic unhelpful people here, don't worry.
Can you send me your build.gradle?
m
guys, if you think this is a build-related problem, try asking in #gradle
👍 1
k
@Matteo Mirk and @Quy D X Nguyen thank you both for the help. Your comments pointed me toward the solution I found: Create a new project in IntelliJ, migrate only my code over, install all deps via IntelliJ’s interface, and never touch Gradle. App is in production as we speak 🙂 FWIW, this is directly attributable to me being new to Kotlin and the ancillary items like IntelliJ and Kotlin’s package managers.
👍 1
rubber duck 1