Skip to content
This repository has been archived by the owner on May 22, 2022. It is now read-only.

Commit

Permalink
0.3.3 release preparations
Browse files Browse the repository at this point in the history
  • Loading branch information
bitstormFA committed Nov 11, 2017
1 parent e4e498b commit 6a7e908
Show file tree
Hide file tree
Showing 5 changed files with 381 additions and 53 deletions.
43 changes: 41 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ The performance has not been optimized but is acceptable on local tests. Upon fi
subsequent calls will be faster.

# Version
0.3.2
0.3.3
* This version fixes a bug in the size calculation and prevents throwing exception if setting a wrong formula.
If the formula string cannot be parsed it will be set to \text{Invalid Formula}

# Building the project
The project uses [gradle](http://www.gradle.org) as build tool.
Expand Down Expand Up @@ -81,11 +83,48 @@ public class FXApp extends Application {

## Maven dependency

Add the add the following repository and dependency
```
<?xml version="1.0" encoding="UTF-8" ?>
<settings xsi:schemaLocation='http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd'
xmlns='http://maven.apache.org/SETTINGS/1.0.0' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-bitstormger-maven</id>
<name>bintray</name>
<url>https://dl.bintray.com/bitstormger/maven</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>bintray-bitstormger-maven</id>
<name>bintray-plugins</name>
<url>https://dl.bintray.com/bitstormger/maven</url>
</pluginRepository>
</pluginRepositories>
<id>bintray</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>bintray</activeProfile>
</activeProfiles>
</settings>
```

```
<dependency>
<groupId>com.proudapes</groupId>
<artifactId>jlatexmathfx</artifactId>
<version>0.3.2</version>
<version>0.3.3</version>
</dependency>
```

Expand Down
130 changes: 79 additions & 51 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,46 @@ buildscript {
jcenter()
}
dependencies {
classpath 'net.researchgate:gradle-release:2.3.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}

apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'net.researchgate.release'
apply plugin: 'com.jfrog.bintray'

allprojects {
repositories {
jcenter()
}
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'java'
}

publishing {
publications {
maven(MavenPublication) {
from components.java
groupId 'com.proudapes'
artifactId 'jlatexmathfx'
artifact sourcesJar
artifact javadocJar
version '0.3.3'
pom.withXml {
asNode().dependencies.'*'.findAll() {
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
dep.name == it.artifactId.text()
}
}.each() {
it.scope*.value = 'compile'
}
}
}
}
}


group = 'com.proudapes'
version = '0.3.3'


sourceCompatibility = '1.8'
Expand All @@ -30,12 +62,6 @@ dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}


signing {
required { isReleaseVersion && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}

task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
Expand All @@ -46,9 +72,6 @@ task sourcesJar(type: Jar) {
from sourceSets.main.allSource
}

artifacts {
archives javadocJar, sourcesJar
}

task copyTemplates(type: Copy) {
from 'src/templates'
Expand All @@ -57,50 +80,55 @@ task copyTemplates(type: Copy) {
filter(ReplaceTokens, tokens: [version: version])
}

uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: hasProperty('ossrhUsername')?ossrhUsername:'', password: hasProperty('ossrhPassword')?ossrhPassword:'')
}

snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: hasProperty('ossrhUsername')?ossrhUsername:'', password: hasProperty('ossrhPassword')?ossrhPassword:'')
}

pom.project {
name 'jlatexmathfx'
packaging 'jar'
description 'A custom javafx control to render latex formula'
url 'https://github.com/bitstormGER/jlatexmathfx'

scm {
connection 'scm:git:https://github.com/bitstormGER/jlatexmathfx.git'
developerConnection 'scm:git:https://github.com/bitstormGER/jlatexmathfx.git'
url 'https://github.com/bitstormGER/jlatexmathfx.git'
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['maven']
publish = true
override = false
pkg {
version {
name = '0.3.3'
desc = 'patch release'
released = new Date()
vcsTag = '0.3.3'
}
repo = 'maven'
name = 'jlatexmathfx'
websiteUrl = 'https://github.com/bitstormGER/jlatexmathfx'
issueTrackerUrl = 'https://github.com/bitstormGER/jlatexmathfx/issues'
publicDownloadNumbers = true
licenses = ['GPL2']
vcsUrl = 'https://github.com/bitstormGER/jlatexmathfx.git'

licenses {
license {
name 'GNU General Public License, version 2'
url 'https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html'
}
}
}
}

developers {
developer {
id 'bitstormger'
}
}
}
// Create the pom configuration:
def pomConfig = {
licenses {
license {
name "GPL2"
url "https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html"
distribution "repo"
}
}
developers {
developer {
id "bitstormger"
name "bitstormger"
email "bitstorm@tutanota.com"
}
}

scm {
url "https://github.com/bitstormGER/jlatexmathfx"
}
}



task wrapper(type: Wrapper) {
gradleVersion = '4.3.1'
}


5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3.1-bin.zip
Loading

0 comments on commit 6a7e908

Please sign in to comment.