Skip to content

Commit

Permalink
Update Gradle, deploy. Release 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kotcrab committed Mar 24, 2022
1 parent 4ebe9a7 commit 1f99a0e
Show file tree
Hide file tree
Showing 9 changed files with 220 additions and 239 deletions.
10 changes: 6 additions & 4 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
#### Version: 1.7

#### Version: 1.6
- Updated Kotlin to 1.6.10
- Updated to Kotlin 1.6.10

#### Version: 1.5

- Updated Kotlin to 1.5.30
- Updated to Kotlin 1.5.30
- JVM target is now JVM 11

#### Version: 1.4

- Fixed incorrect assembly for pseudo-instructions: `blt`, `bge`, `bgt`, `ble`
- Updated Kotlin to 1.3.50
- Updated to Kotlin 1.3.50

#### Version: 1.3

- Updated Kotlin to 1.3.20
- Updated to Kotlin 1.3.20

#### Version: 1.2

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ executables. It was successfully used in few fan translations and game modding p
kmips is available from Maven Central repository

```groovy
compile "com.kotcrab.kmips:kmips:1.5"
compile "com.kotcrab.kmips:kmips:1.6"
```

##### Example code
Expand Down
92 changes: 56 additions & 36 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,40 +1,13 @@
buildscript {
ext.kotlinVersion = '1.6.10'

repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}

plugins {
id 'io.codearte.nexus-staging' version '0.11.0'
}

group 'com.kotcrab.kmips'
version '1.6-SNAPSHOT'

apply plugin: 'kotlin'
apply from: 'deploy.gradle'

uploadArchives {
repositories {
mavenDeployer {
pom.project {
name 'kmips'
artifactId 'kmips'
packaging 'jar'
description 'MIPS assembler intended for assembling small code patches'
}
}
}
id "org.jetbrains.kotlin.jvm" version "1.6.10"
id "java-library"
id "maven-publish"
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
id "signing"
}

nexusStaging {
packageGroup = "com.kotcrab"
}
group "com.kotcrab.kmips"
version "1.7-SNAPSHOT"

repositories {
mavenCentral()
Expand All @@ -53,6 +26,53 @@ compileTestKotlin {
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
testImplementation group: 'junit', name: 'junit', version: '4.11'
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.6.10"
testImplementation "junit:junit:4.11"
}

java {
withJavadocJar()
withSourcesJar()
}

nexusPublishing {
repositories {
sonatype()
}
}

publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
pom {
name.set("kmips")
description.set("MIPS assembler intended for assembling small code patches")
url.set("https://github.com/kotcrab/kmips")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("kotcrab")
name.set("Kotcrab")
url.set("https://kotcrab.com")
}
}
scm {
connection.set("scm:git:[email protected]:kotcrab/kmips.git")
developerConnection.set("scm:git:[email protected]:kotcrab/kmips.git")
url.set("[email protected]:kotcrab/kmips.git")
}
}
}
}
}

signing {
required { !project.version.endsWith("-SNAPSHOT") && !project.hasProperty("skipSigning") }
sign publishing.publications.mavenJava
}
72 changes: 0 additions & 72 deletions deploy.gradle

This file was deleted.

3 changes: 0 additions & 3 deletions gradle.properties

This file was deleted.

Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 1f99a0e

Please sign in to comment.