An open API service indexing awesome lists of open source software.

https://github.com/codicis/asn1-gradle-plugin

Gradle plugin base on Java ASN.1 BER and DER encoding/decoding library (ASN1bean)
https://github.com/codicis/asn1-gradle-plugin

asn1 compiler gradle java plugin

Last synced: 8 months ago
JSON representation

Gradle plugin base on Java ASN.1 BER and DER encoding/decoding library (ASN1bean)

Awesome Lists containing this project

README

          

# ASN.1 Gradle Compiler Plugin

This Gradle plugin provides easy integration of [ASN.1bean](https://github.com/beanit/asn1bean) — a Java-based library supporting **BER** and **DER** encoding/decoding of ASN.1 data structures.

## 📦 Plugin Setup

Add the plugin using the **plugins DSL** in your `build.gradle.kts`:

```kotlin
plugins {
id("io.github.codicis.asn1") version "0.1"
}
```

## ⚙️ Configuration

Configure the plugin via the `asn1` extension block:

```kotlin
asn1 {
// Set the ASN.1 compiler version
version = "1.14.0"

model {
register("taskName"){
// Define target package name for generated classes
packageName.set("com.example.generated")

// Provide input ASN.1 source files
sourceFiles.setFrom(fileTree("src/main/asn1"))

// Override if you need a custom output directory for generated Java classes
outputDir.set(layout.buildDirectory.dir("generated/asn1"))
}
}
}
```

## 📚 Resources

For more details and documentation, refer to:

- 🌐 [ASN.1bean Overview](https://www.beanit.com/asn1/)
- 🧩 [ASN.1bean GitHub Repository](https://github.com/beanit/asn1bean)