Skip to content

Commit

Permalink
Update to Kotlin 1.0 RC
Browse files Browse the repository at this point in the history
  • Loading branch information
breandan committed Feb 6, 2016
1 parent bbcd86c commit c7a9f3f
Show file tree
Hide file tree
Showing 54 changed files with 330 additions and 556 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.idea/shelf
.idea/tasks.xml
.idea/dictionaries
.idea/libraries/Gradle*.xml
.idea/libraries/

# Sensitive or high-churn files:
# .idea/dataSources.ids
Expand All @@ -36,7 +36,6 @@ idear.zip
### Gradle template
.gradle
build/
gradle.properties

# Ignore Gradle GUI config
gradle-app.setting
Expand Down
4 changes: 4 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 16 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
buildscript {
ext.kotlin_version = '1.0.0-rc-1036'

repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.0-beta-2423'
classpath 'gradle.plugin.org.jetbrains:gradle-intellij-plugin:0.0.28'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

plugins {
id "org.jetbrains.intellij" version "0.0.39"
}

apply plugin: 'org.jetbrains.intellij'
apply plugin: 'kotlin'
apply plugin: 'java'

compileJava {
Expand All @@ -22,7 +28,7 @@ compileJava {
apply plugin: 'kotlin'

intellij {
version '15.0.1'
version 'LATEST-EAP-SNAPSHOT'
plugins 'coverage'
pluginName 'idear'

Expand All @@ -46,7 +52,7 @@ repositories {
}

dependencies {
compile 'org.jetbrains.kotlin:kotlin-stdlib:0.1-SNAPSHOT'
// compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile 'edu.cmu.sphinx:sphinx4-core:5prealpha-SNAPSHOT'
compile 'org.apache.opennlp:opennlp-tools:1.6.0'
compile 'com.mashape.unirest:unirest-java:1.4.7'
Expand All @@ -56,4 +62,10 @@ dependencies {
compile 'org.codehaus.jettison:jettison:1.3.7'

testCompile 'junit:junit:4.12'
testCompile 'org.apache.opennlp:opennlp-tools:1.6.0'

}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
Empty file modified gradlew
100644 → 100755
Empty file.
168 changes: 0 additions & 168 deletions idear.iml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ class ExtractActionRecognizer : ActionRecognizer {
val index = data.second

val newName = StringBuilder()
val newNameStartIndex = if (index + 1 < words.size() && words[index + 1] == "to")
val newNameStartIndex = if (index + 1 < words.size && words[index + 1] == "to")
index + 2
else
index + 1

var first = true
for (i in newNameStartIndex..words.size() - 1) {
for (i in newNameStartIndex..words.size - 1) {
val word = if (first) words[i] else words[i].capitalize()
newName.append(word)
first = false
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/jetbrains/idear/jsgf/JSpeechIcons.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

import com.intellij.openapi.util.IconLoader;

import javax.swing.*;

public class JSpeechIcons {
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/jetbrains/idear/jsgf/JSpeechParser.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions src/main/java/com/jetbrains/idear/jsgf/JSpeechUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import com.intellij.psi.search.GlobalSearchScope;
import com.intellij.psi.util.PsiTreeUtil;
import com.intellij.util.indexing.FileBasedIndex;
import com.jetbrains.idear.jsgf.JSpeechFile;
import com.jetbrains.idear.jsgf.JSpeechFileType;
import com.jetbrains.idear.jsgf.psi.JSpeechRuleDefinition;

import java.util.ArrayList;
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/jetbrains/idear/jsgf/_JSpeechLexer.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions src/main/java/com/jetbrains/idear/jsgf/psi/JSpeechScope.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/main/java/com/jetbrains/idear/jsgf/psi/JSpeechTypes.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c7a9f3f

Please sign in to comment.