Skip to content

Commit

Permalink
v1.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
GilbertoKPL committed Jan 21, 2022
1 parent 8da64c3 commit 7c1358d
Show file tree
Hide file tree
Showing 133 changed files with 461 additions and 471 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<a href="https://github.com/SlimJar/slimjar/actions/workflows/gradle.yml">
<img src="https://github.com/SlimJar/slimjar/actions/workflows/gradle.yml/badge.svg">
</a>
<a href="https://plugins.gradle.org/plugin/io.github.slimjar">
<img src="https://img.shields.io/maven-metadata/v.svg?label=gradle-plugin&metadataUrl=https%3A%2F%2Fplugins.gradle.org%2Fm2%2Fio%2Fgithub%2Fslimjar%2Fio.github.slimjar.gradle.plugin%2Fmaven-metadata.xml">
<a href="https://plugins.gradle.org/plugin/github.slimjar">
<img src="https://img.shields.io/maven-metadata/v.svg?label=gradle-plugin&metadataUrl=https%3A%2F%2Fplugins.gradle.org%2Fm2%2Fio%2Fgithub%2Fslimjar%2Fgithub.slimjar.gradle.plugin%2Fmaven-metadata.xml">
</a>
<a href="https://repo.vshnv.tech/releases/io/github/slimjar/slimjar">
<img src="https://img.shields.io/maven-metadata/v.svg?label=maven&metadataUrl=https%3A%2F%2Frepo.vshnv.tech%2Fio%2Fgithub%2Fslimjar%2Fslimjar%2Fmaven-metadata.xml">
Expand Down Expand Up @@ -50,7 +50,7 @@ build file, use the `ignoreRelocation` flag while running by using `-DignoreRelo
```groovy
plugins {
id 'com.github.johnrengelman.shadow' version '6.0.0'
id 'io.github.slimjar' version '1.3.0'
id 'github.slimjar' version '1.3.0'
}
dependencies {
implementation slimjar("1.2.6")
Expand All @@ -63,7 +63,7 @@ slimJar {
```

(For Kotlin DSL, to use the `slimjar` extension in dependencies block, you will need the following import
- `import io.github.slimjar.func.slimjar`)
- `import github.slimjar.func.slimjar`)

<br>
<br>
Expand All @@ -78,7 +78,7 @@ gradlew test
<br>
<h2 align="center">Releases</h2>

* https://plugins.gradle.org/plugin/io.github.slimjar
* https://plugins.gradle.org/plugin/github.slimjar
* https://repo.vshnv.tech/releases/io/github/slimjar/slimjar/1.2.1

Distributed under the MIT license. See ``LICENSE`` for more information.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

allprojects {
group 'io.github.slimjar'
group 'github.slimjar'

apply plugin: 'com.github.hierynomus.license-base'

Expand Down
10 changes: 5 additions & 5 deletions gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
`maven-publish`
}

group = "io.github.slimjar"
group = "github.slimjar"
version = "1.3.0-SNAPSHOT"

repositories {
Expand Down Expand Up @@ -82,10 +82,10 @@ tasks {

withType<ShadowJar> {
mapOf(
"io.github.slimjar" to "",
"github.slimjar" to "",
"me.lucko.jarrelocator" to ".jarrelocator",
"com.google.gson" to ".gson"
).forEach { relocate(it.key, "io.github.slimjar${it.value}") }
).forEach { relocate(it.key, "github.slimjar${it.value}") }
relocate("kotlin", "kotlin")
}

Expand All @@ -110,10 +110,10 @@ afterEvaluate {
gradlePlugin {
plugins {
create("slimjar") {
id = "io.github.slimjar"
id = "github.slimjar"
displayName = "SlimJar"
description = "JVM Runtime Dependency Management."
implementationClass = "io.github.slimjar.SlimJarPlugin"
implementationClass = "github.slimjar.SlimJarPlugin"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.slimjar
package github.slimjar

import groovy.lang.Closure

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package io.github.slimjar
package github.slimjar

import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import io.github.slimjar.exceptions.ShadowNotFoundException
import io.github.slimjar.func.applyReleaseRepo
import io.github.slimjar.func.applySnapshotRepo
import io.github.slimjar.func.createConfig
import io.github.slimjar.func.slim
import io.github.slimjar.task.SlimJar
import github.slimjar.exceptions.ShadowNotFoundException
import github.slimjar.func.applyReleaseRepo
import github.slimjar.func.applySnapshotRepo
import github.slimjar.func.createConfig
import github.slimjar.func.slim
import github.slimjar.task.SlimJar
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.Dependency
Expand Down Expand Up @@ -61,7 +61,7 @@ class SlimJarPlugin : Plugin<Project> {
}
project.dependencies.extra.set(
"slimjar",
asGroovyClosure("+") { version -> "io.github.slimjar:slimjar:$version" }
asGroovyClosure("+") { version -> "github.slimjar:slimjar:$version" }
)
// Hooks into shadow to inject relocations
val shadowTask = tasks.withType(ShadowJar::class.java).firstOrNull() ?: return
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package io.github.slimjar.exceptions
package github.slimjar.exceptions

class ConfigurationNotFoundException(message: String) : RuntimeException(message)
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package io.github.slimjar.exceptions
package github.slimjar.exceptions

class ShadowNotFoundException(message: String) : RuntimeException(message)
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@file:Suppress("UNCHECKED_CAST")

package io.github.slimjar.func
package github.slimjar.func

import io.github.slimjar.exceptions.ConfigurationNotFoundException
import github.slimjar.exceptions.ConfigurationNotFoundException
import org.gradle.api.Project
import org.gradle.api.artifacts.Configuration
import org.gradle.api.artifacts.dsl.DependencyHandler
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.slimjar.func
package github.slimjar.func

import io.github.slimjar.SLIM_API_CONFIGURATION_NAME
import io.github.slimjar.SLIM_CONFIGURATION_NAME
import github.slimjar.SLIM_API_CONFIGURATION_NAME
import github.slimjar.SLIM_CONFIGURATION_NAME
import org.gradle.api.Action
import org.gradle.api.artifacts.Dependency
import org.gradle.api.artifacts.ExternalModuleDependency
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.slimjar.relocation
package github.slimjar.relocation

/**
* Added as a wrapper for the [RelocationRule] due to Gradle not liking it
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
package io.github.slimjar.task
package github.slimjar.task

import com.github.jengelman.gradle.plugins.shadow.ShadowPlugin
import com.google.gson.GsonBuilder
import com.google.gson.reflect.TypeToken
import io.github.slimjar.SLIM_API_CONFIGURATION_NAME
import io.github.slimjar.SlimJarPlugin
import io.github.slimjar.func.performCompileTimeResolution
import io.github.slimjar.func.slimInjectToIsolated
import io.github.slimjar.relocation.RelocationConfig
import io.github.slimjar.relocation.RelocationRule
import io.github.slimjar.resolver.CachingDependencyResolver
import io.github.slimjar.resolver.ResolutionResult
import io.github.slimjar.resolver.data.Dependency
import io.github.slimjar.resolver.data.DependencyData
import io.github.slimjar.resolver.data.Mirror
import io.github.slimjar.resolver.data.Repository
import io.github.slimjar.resolver.enquirer.PingingRepositoryEnquirerFactory
import io.github.slimjar.resolver.mirrors.SimpleMirrorSelector
import io.github.slimjar.resolver.pinger.HttpURLPinger
import io.github.slimjar.resolver.pinger.URLPinger
import io.github.slimjar.resolver.strategy.*
import github.slimjar.SLIM_API_CONFIGURATION_NAME
import github.slimjar.SlimJarPlugin
import github.slimjar.func.performCompileTimeResolution
import github.slimjar.func.slimInjectToIsolated
import github.slimjar.relocation.RelocationConfig
import github.slimjar.relocation.RelocationRule
import github.slimjar.resolver.CachingDependencyResolver
import github.slimjar.resolver.ResolutionResult
import github.slimjar.resolver.data.Dependency
import github.slimjar.resolver.data.DependencyData
import github.slimjar.resolver.data.Mirror
import github.slimjar.resolver.data.Repository
import github.slimjar.resolver.enquirer.PingingRepositoryEnquirerFactory
import github.slimjar.resolver.mirrors.SimpleMirrorSelector
import github.slimjar.resolver.pinger.HttpURLPinger
import github.slimjar.resolver.pinger.URLPinger
import github.slimjar.resolver.strategy.*
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.async
Expand Down
2 changes: 1 addition & 1 deletion loader-agent/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java'
}

group 'io.github.slimjar'
group 'github.slimjar'
version '1.2.0'

repositories {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.slimjar.injector.agent;
package github.slimjar.injector.agent;

import java.io.IOException;
import java.lang.instrument.Instrumentation;
Expand Down
19 changes: 1 addition & 18 deletions slimjar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ publishing {
publications {
mavenPublish(MavenPublication) {
from components.java
groupId 'io.github.slimjar'
groupId 'github.slimjar'
artifactId 'slimjar'
version project.version
pom {
Expand Down Expand Up @@ -60,23 +60,6 @@ publishing {

}
}
repositories {
maven {
if (project.version.endsWith('-SNAPSHOT')) {
url "https://repo.vshnv.tech/snapshots/"
} else {
url "https://repo.vshnv.tech/releases/"
}

credentials {
username = project.findProperty("reposiliteAlias") ?: ""
password = project.findProperty("reposiliteToken") ?: ""
}
authentication {
basic(BasicAuthentication)
}
}
}
}


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.slimjar.app;
package github.slimjar.app;

public final class AppendingApplication extends Application {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.slimjar.app;
package github.slimjar.app;

import java.util.HashMap;
import java.util.Map;
Expand Down
Loading

0 comments on commit 7c1358d

Please sign in to comment.