Generate OSGi infos in the manifest

Aperta
#2,285 6 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
build-system

Direzione di ricerca

Inizia esaminando il lavoro di preparazione in cucumber-parent PR 61 e l'elenco dei repository non verificato, in particolare cucumber-jvm e gherkin-utils. Il lavoro è completato quando i manifesti JAR prodotti contengono i metadati OSGi previsti senza richiedere ai consumer di ripacchettarli.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

:zap: enhancement
🤔 What's the problem you're trying to solve?

I use this in an Eclipse plugin and currently need to repack the original cucumber jars into an OSGi bundle, but adding the info at the source has much benefits:

  1. Additional metadata in the manifest is ignored by other tools
  2. At build time there is the most rich information about used packages and versions so better metadata can be generated
  3. Using the original jar ensures it can later be identified as such e.g. with a security scanner
  4. No risk that different people repack the same jar under the same name with different settings
  5. only do the work once than on each build / consumer
✨ What's your proposed solution?

Embed OSGi metadata into the manifest of the produced jar file at the first place using a lightweight approach that enhances the usual manifest with OSGi metadata.

⛏ Have you considered any alternatives or workarounds?

Currently the metadata is added after the fact but this has several drawbacks e.g. its easy to get out of sync and there is a risk of the same people doing slightly different things multiple time.

📚 Any additional context?

The preparation work for this was done here:

This needs to be adapted in the following repositories to be fully effective but can be done iteratively, e.g we likely want to start at the root and after the release go on with the next:

Lingua principale
Nessun dato sulla lingua
Stelle
3.4k
Fork
676
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cucumber/common

Tutte le issue di cucumber/common

Issue simili

Altre issue su Build System

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.