View pom.xml
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>ru.mail.track</groupId> | |
<artifactId>messenger</artifactId> | |
<version>1.0-SNAPSHOT</version> |
View gist:ce9a3534b7c3a0fbf92d
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
D:\Problems\_technotrack\1sem\java\technotrack-mail-java-1sem>mvn exec:exec -DServer | |
[INFO] Scanning for projects... | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for ru.mail.track:messenger:jar:1.0-SNAPSHOT | |
[WARNING] 'dependencies.dependency.systemPath' for com.oracle:ojdbc:jar should not point at files within the project directory, ${basedir}/lib/ojdbc6.jar will be unresolvable by depe | |
ndent projects @ line 104, column 25 | |
[WARNING] | |
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. | |
[WARNING] | |
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. |
View gist:6b536580342ce326529e
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
D:\Problems\_technotrack\1sem\java\technotrack-mail-java-1sem>mvn compile | |
[INFO] Scanning for projects... | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for ru.mail.track:messenger:jar:1.0-SNAPSHOT | |
[WARNING] 'dependencies.dependency.systemPath' for com.oracle:ojdbc:jar should not point at files within the project directory, ${basedir}/lib/ojdbc6.jar will be unresolvable by depe | |
ndent projects @ line 104, column 25 | |
[WARNING] | |
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. | |
[WARNING] | |
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. |
View kotlin-compiler-apiVersion-and-languageVersion.gradle
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
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { | |
kotlinOptions { | |
apiVersion = "1.2" | |
languageVersion = "1.2" | |
} | |
} |
View comanion-static.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
class Sample { | |
companion object { | |
@JvmField | |
val INSTANCE = Sample() | |
} | |
} |
View dependency-check.java
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
public class DependencyChecker { | |
public static void check() throws ClassNotFoundException { | |
try { | |
// Intrinsics exists in all std-lib versions | |
Class.forName("kotlin.jvm.internal.Intrinsics"); | |
} catch (ClassNotFoundException e) { | |
throw new ClassNotFoundException("Library depends on Kotlin std-lib.\n" + | |
"Add to dependencies: org.jetbrains.kotlin:kotlin-stdlib:1.3.31" | |
); | |
} |
View dependency-check.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
class Sample { | |
companion object { | |
init { | |
DependencyChecker.check() | |
} | |
} | |
} |
View contributors.properties
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
# Sign key alias for contributors.jks | |
releaseSignKeyAlias=key | |
# Sign key password for contributors.jks | |
releaseSignKeyPassword=password | |
# Path to contributors.jks | |
releaseStoreFilePath=./contributors.jks | |
# Keystore password for contributors.jks | |
releaseStorePassword=password |
View build.gradle
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
... | |
apply from: 'signing.gradle' | |
... | |
android { | |
... | |
buildTypes { | |
release { | |
signingConfig signingConfigs.release | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
View signing.gradle
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
def propertiesFilename = "production.properties" | |
if (!project.file(propertiesFilename).exists()) { | |
propertiesFilename = "contributors.properties" | |
} | |
def signingProperties = new Properties() | |
signingProperties.load(new FileInputStream(file(propertiesFilename))) | |
android { | |
signingConfigs { |
OlderNewer