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
plugins { | |
id 'org.hibernate.build.maven-repo-auth' version '3.0.3' | |
} | |
apply plugin: 'org.hibernate.build.maven-repo-auth' | |
repositories { | |
maven { | |
name = 'maven-repo-public' | |
url 'https://repo.company.ph/repository/maven-repo-public/' |
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
user=username | |
pass=password |
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"> | |
<repositories> | |
<repository> | |
... | |
</repository> | |
</repositories> | |
<dependencies> | |
<dependency> | |
<groupId>org.projectlombok</groupId> |
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"> | |
<repositories> | |
<repository> | |
<id>maven-repo-public</id> | |
<url>https://repo.company.ph/repository/maven-repo-public/</url> | |
</repository> | |
</repositories> | |
<dependencies> | |
<dependency> |
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
repositories { | |
maven { | |
url 'https://repo.company.ph/repository/maven-repo-public/' | |
credentials { | |
username = project.properties.user | |
password = project.properties.pass | |
} | |
} | |
} |
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"?> | |
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<servers> | |
<server> | |
<id>maven-repo-public</id> | |
<username>username</username> | |
<password>password</password> | |
</server> | |
</servers> | |
</settings> |
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
String result = ""; | |
if(n == 0) return result; | |
if(n == majorSymbolValue - 1) { | |
return minorSymbol + majorSymbol; | |
} | |
for(int i=0; i < n; i++) { | |
if(n == nextMajorSymbolValue - (int) (nextMajorSymbolValue / 100.0) * 10 + 1) { | |
return result += minorSymbol + nextMajorSymbol; | |
} | |
if(n >= majorSymbolValue) { |
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 MySingleton | |
{ | |
public static MySingleton mySingleton; | |
public static synchronized MySingleton getInstance(String tname) { | |
if(mySingleton == null) { | |
System.out.println("Thread " + tname + " Singleton class is null, instantiate and return the instance"); | |
mySingleton = new MySingleton(); | |
} | |
else { |
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 TextBoxWithMessage | |
{ | |
private TextBox textbox; | |
private String message; | |
public TextBoxWithError(TextBox textbox, String message) { | |
this.textbox = textbox; | |
this.message = message; | |
} |