Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[starter-dev] Package name of demo code
  • From: Alexander Rühl <alexander.ruehl@xxxxxxxxxxxxxxxx>
  • Date: Sun, 31 Dec 2023 12:47:06 +0000
  • Accept-language: de-DE, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sti.valantic.com; dmarc=pass action=none header.from=sti.valantic.com; dkim=pass header.d=sti.valantic.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pEfBqJbKeR84u/sNLMzbNUDE4M7ruvvOnFGO1D2UbII=; b=bUiE0E0K5a0jiFiqU0BxO55T7vz2aP6+LSOL98dPihxa/XVAEejXikPFXXaitDQcCgKpPDB/Bma+T5Phc/TZs3kLdhZfMl3HFDurZ5IiRUEBLCGH8z+SdUZ2ryHbkIgAi1GLBM5F4uQj9lGllU71/jQaG5B+3eSCLt2M6VZ5HCn/j36lTjIH6BT6OU/LRhSNJ4w7rmnfu0J/IybGXA+268gRCaNiWnOHhyBE4r6/ScmrQPTXISunhpSEJ8EWCufZ+mfpBYjf2uTrzPthuDmmBFd6EPUCV4O+TTh37QEcwINlPppBTeZfpoM3It415jw65lkF0b0TsBds3zCIubHQsg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bCvAB7POFEHgDuGC3YOWYI/WCr1txAAUXQ7MmibQdGtl0n4E70GDttCCxxFqx1LiZb0Pm/Jr6GIie5iruN3aEPe0a5xq2C7IooSn17F72K4ppxWZsVOwyCBIpJJY/LzSwv5+AlY9FN5gPK56k043MA1v0VURtvfOMmWzTtTvQWVPMsw6vQ2BXgXUoMIvddAy+cXji9KxqH5FLn1ShcsLuO7pJUze+bKjcYU3ToInJT25Jb20MbbksJXgLdMwHgKB2QoeJ5bi8LgSNyASyT6oUS1W55VypEiDoCMFKzeG/Z+rHWD9E6GmMiavMJmb6tMN6EvwoyAvKRjiJMY9nv92zg==
  • Delivered-to: starter-dev@xxxxxxxxxxx
  • List-archive: <https://dev.eclipse.org/mailman/private/starter-dev/>
  • List-help: <mailto:starter-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://dev.eclipse.org/mailman/listinfo/starter-dev>, <mailto:starter-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://dev.eclipse.org/mailman/options/starter-dev>, <mailto:starter-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHaO+Vw3etwTz8cUUy0eR1KRiSI4Q==
  • Thread-topic: Package name of demo code

Hi all,

just before year's end, I will throw a discussion into the round, where the answer seems to be a matter of taste rather than backed by any convention.

I currently work on adding groupId and artifactId in the UI with validation and respecting generated artifacts. I will leave the package name unchanged for now, but suppose we'd have groupId and artifactId already, what would you expect that the Hello.java class would get as package name (and thereby folder structure)?

Example: groupId = com.mycompany   artifactId = my-great-app
  1. com.mycompany.my-great-app.Hello   (artifactId becomes part of package unchanged)
  2. com.mycompany.mygreatapp.Hello   (hyphons will be deleted, the rest becomes part of package)
  3. com.mycompany.my.great.app.Hello   (hyphons will be transformed to individual package parts)
  4. com.mycompany.Hello   (no 2nd part of package, just the groupId)
  5. com.mycompany.something.else.Hello   (user specifies the package separately in UI)
  6. com.mycompany.jakarta.hello.Hello   (package name is fix, regardless what the user entered as artifactId)

Interestingly, if you compare with several other starters out there (Microprofile, Quarkus, Micronaut, SpringBoot), they all handle that differently.

Happy New Year,
Alex


Back to the top