-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from usefulness/updates
- Loading branch information
Showing
36 changed files
with
325 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
licensee-for-android-core/api/licensee-for-android-core.api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
public final class io/github/usefulness/licensee/Artifact { | ||
public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Lio/github/usefulness/licensee/Scm;Ljava/util/List;)V | ||
public fun equals (Ljava/lang/Object;)Z | ||
public final fun getArtifactId ()Ljava/lang/String; | ||
public final fun getGroupId ()Ljava/lang/String; | ||
public final fun getName ()Ljava/lang/String; | ||
public final fun getScm ()Lio/github/usefulness/licensee/Scm; | ||
public final fun getSpdxLicenses ()Ljava/util/List; | ||
public final fun getUnknownLicenses ()Ljava/util/List; | ||
public final fun getVersion ()Ljava/lang/String; | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public abstract interface class io/github/usefulness/licensee/Licensee { | ||
public abstract fun getArtifacts ()Ljava/util/List; | ||
} | ||
|
||
public final class io/github/usefulness/licensee/Scm { | ||
public fun <init> (Ljava/lang/String;)V | ||
public fun equals (Ljava/lang/Object;)Z | ||
public final fun getUrl ()Ljava/lang/String; | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public final class io/github/usefulness/licensee/SpdxLicense { | ||
public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V | ||
public fun equals (Ljava/lang/Object;)Z | ||
public final fun getIdentifier ()Ljava/lang/String; | ||
public final fun getName ()Ljava/lang/String; | ||
public final fun getUrl ()Ljava/lang/String; | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public final class io/github/usefulness/licensee/UnknownLicense { | ||
public fun <init> (Ljava/lang/String;Ljava/lang/String;)V | ||
public fun equals (Ljava/lang/Object;)Z | ||
public final fun getName ()Ljava/lang/String; | ||
public final fun getUrl ()Ljava/lang/String; | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
plugins { | ||
alias(libs.plugins.starter.library.kotlin) | ||
alias(libs.plugins.kotlinx.binarycompatibility) | ||
alias(libs.plugins.drewhamilton.poko) | ||
id("com.starter.publishing") | ||
} | ||
|
||
kotlin { | ||
explicitApi() | ||
} | ||
|
||
def targetVersion = JavaVersion.VERSION_1_8 | ||
tasks.withType(KotlinCompile).configureEach { | ||
it.kotlinOptions.jvmTarget = targetVersion.toString() | ||
} | ||
tasks.withType(JavaCompile).configureEach { | ||
it.options.release.set(targetVersion.majorVersion.toInteger()) | ||
} | ||
|
||
tasks.withType(KotlinCompile).configureEach { | ||
kotlinOptions { | ||
apiVersion = "1.8" | ||
languageVersion = "1.8" | ||
} | ||
} | ||
tasks.withType(Test).configureEach { | ||
useJUnitPlatform() | ||
} |
30 changes: 30 additions & 0 deletions
30
licensee-for-android-core/src/main/kotlin/io/github/usefulness/licensee/Artifact.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package io.github.usefulness.licensee | ||
|
||
import dev.drewhamilton.poko.Poko | ||
|
||
@Poko | ||
public class Artifact( | ||
public val groupId: String, | ||
public val artifactId: String, | ||
public val version: String, | ||
public val name: String?, | ||
public val spdxLicenses: List<SpdxLicense>, | ||
public val scm: Scm?, | ||
public val unknownLicenses: List<UnknownLicense>, | ||
) | ||
|
||
@Poko | ||
public class SpdxLicense( | ||
public val identifier: String, | ||
public val name: String, | ||
public val url: String, | ||
) | ||
|
||
@Poko | ||
public class Scm(public val url: String) | ||
|
||
@Poko | ||
public class UnknownLicense( | ||
public val name: String, | ||
public val url: String, | ||
) |
6 changes: 6 additions & 0 deletions
6
licensee-for-android-core/src/main/kotlin/io/github/usefulness/licensee/Licensee.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package io.github.usefulness.licensee | ||
|
||
public interface Licensee { | ||
|
||
public val artifacts: List<Artifact> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.